chore: import upstream snapshot with attribution
This commit is contained in:
+22
@@ -0,0 +1,22 @@
|
||||
#!/bin/bash
|
||||
# Check if a tool is installed and provide installation instructions if not
|
||||
|
||||
TOOL_NAME="$1"
|
||||
INSTALL_CMD="$2"
|
||||
|
||||
if [ -z "$TOOL_NAME" ]; then
|
||||
echo "Usage: check-tool.sh <tool-name> [install-command]"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if command -v "$TOOL_NAME" &> /dev/null; then
|
||||
echo "OK: $TOOL_NAME is installed"
|
||||
$TOOL_NAME --version 2>/dev/null || true
|
||||
exit 0
|
||||
else
|
||||
echo "MISSING: $TOOL_NAME is not installed"
|
||||
if [ -n "$INSTALL_CMD" ]; then
|
||||
echo "Install with: $INSTALL_CMD"
|
||||
fi
|
||||
exit 1
|
||||
fi
|
||||
+26
@@ -0,0 +1,26 @@
|
||||
#!/bin/bash
|
||||
# Run taze for Node.js dependency updates
|
||||
# Usage: run-taze.sh [-r] [additional-args]
|
||||
# -r: Recursive mode for monorepos
|
||||
|
||||
set -e
|
||||
|
||||
# Check if taze is installed
|
||||
if ! command -v taze &> /dev/null; then
|
||||
echo "ERROR: taze is not installed"
|
||||
echo ""
|
||||
echo "Install options:"
|
||||
echo " npm install -g taze # Global install (recommended)"
|
||||
echo " npx taze # One-time via npx"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Check if package.json exists
|
||||
if [ ! -f "package.json" ]; then
|
||||
echo "ERROR: No package.json found in current directory"
|
||||
exit 2
|
||||
fi
|
||||
|
||||
# Run taze with provided arguments
|
||||
echo "Running taze..."
|
||||
taze "$@"
|
||||
Reference in New Issue
Block a user