Commit 31b784c6 authored by Vitaly Lipatov's avatar Vitaly Lipatov

gitask: add commit command

parent 1bc591bc
......@@ -19,6 +19,7 @@ if [ "$1" = "-h" ] || [ "$1" = "--help" ]; then
echo "Examples:"
echo " new [p8] - create new task [on p8]"
echo " run [NNNN] [--test|--test-only] [--commit] - run task NNNN (no test-only with --commit)"
echo " commit [NNNN] - commit task NNNN (the same as run --commit)"
echo " add del package - add package remove command"
echo " share NNNN [enable] - share task NNNN"
echo " find PACKAGE - do find-package of PACKAGE"
......@@ -93,6 +94,17 @@ if [ "$1" = "quota" ] ; then
exit
fi
if [ "$1" = "commit" ] ; then
shift
COMMIT=''
TASK="$1"
[ -n "$TASK" ] || TASK="$(get_last)" || fatal "Can't get last task"
docmd ssh $GEARHOST task run --commit "$TASK"
exit
fi
if [ "$1" = "run" ] ; then
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