25 lines
705 B
Bash
Executable File
25 lines
705 B
Bash
Executable File
#!/bin/bash
|
|
|
|
help() {
|
|
echo "Toolkit Manager - Manage toolkit scripts - v0.1.0"
|
|
echo
|
|
echo "Usage: $0 COMMAND ARGS"
|
|
echo "Available commands:"
|
|
echo "add [URL|MODULENAME] Install new script from the Internet"
|
|
echo " and add to PATH."
|
|
echo "run [TOOLKIT] [ARGS] Run the script without using PATH"
|
|
echo "list List installed scripts"
|
|
echo "uninstall [TOOLKIT] Remove from your local ~/.toolkits/bin"
|
|
}
|
|
|
|
commandNotYetImplemented() {
|
|
echo "error: Unknown command. Try 'toolkit-mgr help' to learn more."
|
|
exit
|
|
}
|
|
|
|
if [[ $@ == "" || $@ == "help" ]]; then
|
|
help
|
|
else
|
|
commandNotYetImplemented
|
|
fi
|