43 lines
787 B
Bash
Executable File
43 lines
787 B
Bash
Executable File
#!/bin/bash
|
|
# Helper script template for skill automation
|
|
# Customize this for your skill's specific needs
|
|
|
|
set -e
|
|
|
|
function show_usage() {
|
|
echo "Usage: $0 [options]"
|
|
echo ""
|
|
echo "Options:"
|
|
echo " -h, --help Show this help message"
|
|
echo " -v, --verbose Enable verbose output"
|
|
echo ""
|
|
}
|
|
|
|
# Parse arguments
|
|
VERBOSE=false
|
|
|
|
while [[ $# -gt 0 ]]; do
|
|
case $1 in
|
|
-h|--help)
|
|
show_usage
|
|
exit 0
|
|
;;
|
|
-v|--verbose)
|
|
VERBOSE=true
|
|
shift
|
|
;;
|
|
*)
|
|
echo "Unknown option: $1"
|
|
show_usage
|
|
exit 1
|
|
;;
|
|
esac
|
|
done
|
|
|
|
# Your skill logic here
|
|
if [ "$VERBOSE" = true ]; then
|
|
echo "Running skill automation..."
|
|
fi
|
|
|
|
echo "✅ Complete"
|