Commit 8428077f authored by Vitaly Lipatov's avatar Vitaly Lipatov

gitask: add ls -w [N] to watch the list

parent 15f85d16
...@@ -17,7 +17,7 @@ if [ "$1" = "-h" ] || [ "$1" = "--help" ]; then ...@@ -17,7 +17,7 @@ if [ "$1" = "-h" ] || [ "$1" = "--help" ]; then
docmd ssh $GEARHOST task help | sed -e "s|abort|cancel|g" docmd ssh $GEARHOST task help | sed -e "s|abort|cancel|g"
echo echo
echo "Examples:" echo "Examples:"
echo " ls [-a|--all] - list tasks (--all for all users)" echo " ls [-a|--all] [-w [N]] - list tasks (--all for all users) (-w [N] for update every N seconds)"
echo " new [branch] - create new task on branch (Sisyphus by default)" echo " new [branch] - create new task on branch (Sisyphus by default)"
echo " run [--test-only] [NNNN] [NNNN2] [-m <message>] - run task NNNN" echo " run [--test-only] [NNNN] [NNNN2] [-m <message>] - run task NNNN"
echo " commit [NNNN] [NNNN2] [-m <message>] - commit task(s) NNNN, [NNNN2]" echo " commit [NNNN] [NNNN2] [-m <message>] - commit task(s) NNNN, [NNNN2]"
...@@ -171,6 +171,12 @@ if [ "$1" = "ls" ] ; then ...@@ -171,6 +171,12 @@ if [ "$1" = "ls" ] ; then
docmd ssh $GEARHOST task ls --user=ALL --state=ALL docmd ssh $GEARHOST task ls --user=ALL --state=ALL
exit exit
fi fi
if [ "$1" = "-w" ] ; then
WN="$2"
[ -n "$WN" ] && WN=10
watch -c -n $WN $0 ls
exit
fi
# TODO: with arg(s) — subtask # TODO: with arg(s) — subtask
# TODO: add support ls -a (with subtasks) # TODO: add support ls -a (with subtasks)
showcmd "$GEARHOST>" girar-show "$@" showcmd "$GEARHOST>" girar-show "$@"
......
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