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
efcdf6ce
Commit
efcdf6ce
authored
Aug 18, 2021
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gitask: improve --help support
parent
3f01a11e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
9 deletions
+22
-9
gitask
bin/gitask
+22
-9
No files found.
bin/gitask
View file @
efcdf6ce
...
...
@@ -87,10 +87,6 @@ if [ "$1" = "get" ] ; then
fi
eval
lastarg
=
\$
{
$#}
if
[
"
$lastarg
"
=
"--help"
]
;
then
docmd ssh
$GEARHOST
"
$@
"
exit
fi
if
[
"
$1
"
=
"find"
]
;
then
shift
...
...
@@ -113,6 +109,10 @@ set_if_matched()
# acl [p9] show mc | add mc lav
if
[
"
$1
"
=
"acl"
]
;
then
if
[
"
$lastarg
"
=
"--help"
]
;
then
docmd ssh
$GEARHOST
"
$@
"
exit
fi
shift
BINARYREPO
=
$(
set_if_matched
$1
"Sisyphus [ptc][6-9] [ptc][6-9]
\.
[0-9]"
)
&&
shift
COMMAND
=
"
$1
"
...
...
@@ -145,6 +145,24 @@ if [ "$1" = "log" ] ; then
exit
fi
if
[
"
$1
"
=
"quota"
]
;
then
docmd ssh
$GIRARHOST
quota
"
$@
"
exit
fi
if
[
"
$1
$2
"
=
"cancel --help"
]
;
then
echo
"cancel a task"
echo
"Usage:
$
gita cancel <task id>"
exit
fi
if
[
"
$lastarg
"
=
"--help"
]
;
then
docmd ssh
$GEARHOST
task
"
$@
"
exit
fi
# task command below
if
[
"
$1
"
=
"ls"
]
;
then
shift
if
[
"
$1
"
=
"--all"
]
||
[
"
$1
"
=
"-a"
]
;
then
...
...
@@ -158,11 +176,6 @@ if [ "$1" = "ls" ] ; then
exit
fi
if
[
"
$1
"
=
"quota"
]
;
then
docmd ssh
$GIRARHOST
quota
exit
fi
if
[
"
$1
"
=
"delsub"
]
;
then
shift
TASK
=
"
$(
get_task_number
$1
)
"
...
...
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