Commit 93bba62c authored by Vitaly Lipatov's avatar Vitaly Lipatov

gitask: add find, show, ls, quota

parent ceeed440
...@@ -11,7 +11,8 @@ set_girar_host $1 && shift ...@@ -11,7 +11,8 @@ set_girar_host $1 && shift
if [ "$1" = "-h" ] || [ "$1" = "--help" ]; then if [ "$1" = "-h" ] || [ "$1" = "--help" ]; then
echo "gitask ssh gear.alt task wrapper" echo "gitask ssh gear.alt task wrapper"
echo "Use: gitask [task|show]" echo "Use: gitask [GIRAR] [task|show]"
echo "$HELP_GIRAR"
echo " --help - help" echo " --help - help"
docmd ssh $GEARHOST task help docmd ssh $GEARHOST task help
exit 0 exit 0
...@@ -19,13 +20,36 @@ fi ...@@ -19,13 +20,36 @@ fi
# TODO: acl # TODO: acl
if [ "$1" = "find" ] ; then
shift
#showcmd "$GEARHOST>" find-packages "$@"
docmd ssh $GITHOST find-package "$@"
exit
fi
if [ "$1" = "show" ] ; then if [ "$1" = "show" ] ; then
shift shift
# TODO: show last task without args
showcmd "$GEARHOST>" girar-show "$@"
GIT_ALT=$GEARHOST girar-show "$@"
exit
fi
if [ "$1" = "ls" ] ; then
shift
# TODO: with arg(s) — subtask
# TODO: add support ls -a (with subtasks)
showcmd "$GEARHOST>" girar-show "$@" showcmd "$GEARHOST>" girar-show "$@"
GIT_ALT=$GEARHOST girar-show "$@" GIT_ALT=$GEARHOST girar-show "$@"
exit exit
fi fi
if [ "$1" = "quota" ] ; then
docmd ssh $GEARHOST quota
exit
fi
if [ "$1" = "task" ] ; then if [ "$1" = "task" ] ; then
# by default # by default
shift shift
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment