Commit 32123385 authored by Vitaly Lipatov's avatar Vitaly Lipatov

gitask: add ls --all for all tasks

parent 3a88b631
...@@ -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 - list tasks" echo " ls [-a|--all] - list tasks (--all for all users)"
echo " new [branch] - create new task on branch (Sisyphus by default)" echo " new [branch] - create new task on branch (Sisyphus by default)"
echo " run [-m <message>] [NNNN] - run task NNNN" echo " run [-m <message>] [NNNN] - run task NNNN"
echo " commit [-m <message>] [NNNN] [NNNN2] - commit task(s) NNNN, [NNNN2]" echo " commit [-m <message>] [NNNN] [NNNN2] - commit task(s) NNNN, [NNNN2]"
...@@ -130,7 +130,7 @@ fi ...@@ -130,7 +130,7 @@ fi
if [ "$1" = "ls" ] ; then if [ "$1" = "ls" ] ; then
shift shift
if [ "$1" = "--all" ] || [ "$1" = "-a" ] ; then if [ "$1" = "--all" ] || [ "$1" = "-a" ] ; then
docmd ssh $GEARHOST task ls --all docmd ssh $GEARHOST task ls --user=ALL --state=ALL
exit exit
fi fi
# TODO: with arg(s) — subtask # TODO: with arg(s) — subtask
......
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