save works
This commit is contained in:
parent
f4b1ba4cd7
commit
acfbec875b
51 changed files with 622 additions and 1175 deletions
|
|
@ -1,14 +1,48 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
APP="$0"
|
||||
|
||||
usage() {
|
||||
local _f
|
||||
|
||||
_f=$(dirname "$APP")/share/xce.md
|
||||
|
||||
if [ ! -f "$_f" ]; then
|
||||
echo no document found
|
||||
else
|
||||
glow -p ${_f}
|
||||
fi
|
||||
}
|
||||
|
||||
debug=${DEBUG:-no}
|
||||
|
||||
if [ "${debug}" = "yes" ]; then
|
||||
set -x
|
||||
fi
|
||||
|
||||
case "$1" in
|
||||
hello)
|
||||
controller)
|
||||
shift
|
||||
cowsay "Hello, $*"
|
||||
$(which xce_controller) "$@"
|
||||
;;
|
||||
fortune)
|
||||
fortune
|
||||
worker)
|
||||
shift
|
||||
$(which xcecd) "$@"
|
||||
;;
|
||||
scheduler)
|
||||
shift
|
||||
$(which xce_scheduler) "$@"
|
||||
;;
|
||||
apiserver)
|
||||
shift
|
||||
$(which xce_apiserver) "$@"
|
||||
;;
|
||||
shell)
|
||||
shift
|
||||
bash -i
|
||||
;;
|
||||
*)
|
||||
echo "Usage: $0 {hello <message>|fortune}"
|
||||
usage
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue