Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
etersoft-build-utils
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
korinf
etersoft-build-utils
Commits
11f16fea
You need to sign in or sign up before continuing.
Commit
11f16fea
authored
May 30, 2023
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gitask: add -u|--user USER
parent
8c7c1979
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
gitask
bin/gitask
+10
-2
No files found.
bin/gitask
View file @
11f16fea
...
...
@@ -17,7 +17,7 @@ if [ "$1" = "-h" ] || [ "$1" = "--help" ]; then
docmd ssh
$GEARHOST
task
help
|
sed
-e
"s|abort|cancel|g"
echo
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
" run [--test-only] [NNNN] [NNNN2] [-m <message>] - run task NNNN"
echo
" commit [NNNN] [NNNN2] [-m <message>] - commit task(s) NNNN, [NNNN2]"
...
...
@@ -190,7 +190,15 @@ fi
if
[
"
$1
"
=
"ls"
]
;
then
shift
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
fi
if
[
"
$1
"
=
"-w"
]
;
then
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment