Commit 11f16fea authored by Vitaly Lipatov's avatar Vitaly Lipatov

gitask: add -u|--user USER

parent 8c7c1979
...@@ -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] [-w [N]] - list tasks (--all for all users) (-w [N] for update every N seconds)" echo " ls [-a|--all] [-u|--user USER] [-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]"
...@@ -190,7 +190,15 @@ fi ...@@ -190,7 +190,15 @@ 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 --user=ALL --state=ALL shift
docmd ssh $GEARHOST task ls --user=ALL --state=ALL "$@"
exit
fi
# TODO: support --user=
if [ "$1" = "--user" ] || [ "$1" = "-u" ] ; then
U="$2"
shift 2
docmd ssh $GEARHOST task ls --user=$U "$@"
exit exit
fi fi
if [ "$1" = "-w" ] ; then if [ "$1" = "-w" ] ; then
......
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