@@ -9,7 +9,7 @@ base_options=(
99 ' (--debug --help -h)--debug[enable debugging output]'
1010 ' (--quiet -q --verbose -v)' {-q,--quiet}' [suppress non-error output]'
1111 ' (--verbose -v --quiet -q)' {-v,--verbose}' [show verbose output]'
12- " --color[Color output ]:yes/no:((y\:'yes' n\:'no'))"
12+ " --color[enable/disable color support ]:yes/no:((y\:'yes' n\:'no'))"
1313)
1414
1515_arguments -C \
@@ -23,11 +23,13 @@ case $state in
2323 typeset -a subcommands
2424
2525 subcommands=(
26- commit:' create git commit'
27- manifest:' update package manifests'
28- mask:' mask packages'
29- push:' run QA checks on commits and push them'
30- showkw:' show package keywords'
26+ ' bugs:automatic bugs filer'
27+ ' commit:create git commit'
28+ ' manifest:update package manifests'
29+ ' mask:mask packages'
30+ ' push:run QA checks on commits and push them'
31+ ' showkw:show package keywords'
32+ ' tatt:package testing tool'
3133 )
3234
3335 _describe -t subcommands subcommand subcommands && ret=0
@@ -44,13 +46,14 @@ case $state in
4446 {' (--closes)-c' ,' (-c)--closes' }' [add Closes tag for a given Gentoo bug or upstream PR URL]:bug ID or URL' \
4547 {' (--tag)-T' ,' (-T)--tag' }' [add commit tag]:tag\:value' \
4648 {' (--dry-run)-n' ,' (-n)--dry-run' }' [pretend to create commit]' \
47- {' (--scan)-s' ,' (-s)--scan' }' [run pkgcheck against staged changes]' \
48- {' (--ask)-A' ,' (-A)--ask' }' [confirm creating commit with QA errors]' \
49- ' --mangle[forcibly enable/disable file mangling]' \
50- ' --signoff[add a Signed-off-by trailer]' \
51- ' --gpg-sign[enable GPG signing]' \
52- ' --no-gpg-sign[disable GPG signing]' \
53- \* {--message,-m}' [specify commit message]:message' \
49+ {' (--scan)-s' ,' (-s)--scan' }' [run pkgcheck against staged changes]:boolean:(true false)' \
50+ {' (--ask)-A' ,' (-A)--ask' }' [confirm creating commit with QA errors]:boolean:(true false)' \
51+ {'(--mangle)',' ()--mangle' }' [forcibly enable/disable file mangling]:boolean:(true false)' \
52+ {' (--signoff)' ,' ()--signoff' }' [add a Signed-off-by trailer]:boolean:(true false)' \
53+ ' (--gpg-sign --no-gpg-sign)--gpg-sign[enable GPG signing]' \
54+ ' (--gpg-sign --no-gpg-sign)--no-gpg-sign[disable GPG signing]' \
55+ {' (--distdir)-d' ,' (-d)--distdir' }' [target download directory]:distdir:_files -/' \
56+ \*{' (--message)-m' ,' (-m)--message' }' [specify commit message]:message' \
5457 {' (--message-template)-M' ,' (-M)--message-template' }' [use commit message template from specified file]:template:_files' \
5558 {' (--edit)-e' ,' (-e)--edit' }' [force edit of commit]' \
5659 {' (--update)-u' ,' (-u)--update' }' [stage all changed files]' \
@@ -64,28 +67,31 @@ case $state in
6467 {' (--force)-f' ,' (-f)--force' }' [forcibly remanifest packages]' \
6568 {' (--mirrors)-m' ,' (-m)--mirrors' }' [enable fetching from Gentoo mirrors]' \
6669 ' --if-modified[only check packages that have uncommitted modifications]' \
70+ ' --ignore-fetch-restricted[ignore fetch restricted ebuilds]' \
6771 && ret=0
6872 ;;
6973 (mask)
7074 _arguments -C -A ' -* ' \
7175 $base_options \
72- {' (--rites)-r' ,' (-r)--rites' }' [mark for last rites]' \
73- {' (--bugs)-b' ,' (-b)--bugs' }' [reference bug in the mask comment]' \
76+ ' --api-key[Bugzilla API key]:api key' \
77+ {' (--rites)-r' ,' (-r)--rites' }' [mark for last rites]:days' \
78+ {' (--bugs)-b' ,' (-b)--bugs' }' [reference bug in the mask comment]:bugs' \
7479 ' --email[spawn email composer with prepared email for sending to mailing lists]' \
80+ ' --file-bug[file a last-rite bug]' \
7581 && ret=0
7682 ;;
7783 (push)
7884 _arguments -C -A ' -* ' \
7985 $base_options \
80- {' (--ask)-A' ,' (-A)--ask' }' [confirm pushing commits with QA errors]' \
86+ {' (--ask)-A' ,' (-A)--ask' }' [confirm pushing commits with QA errors]:boolean:(true false) ' \
8187 {' (--dry-run)-n' ,' (-n)--dry-run' }' [pretend to push commits]' \
8288 ' --pull[run git pull --rebase before scanning]' \
8389 && ret=0
8490 ;;
8591 (showkw)
8692 _arguments -C -A ' -* ' \
8793 $base_options \
88- {' (--format)-f' ,' (-f)--format' }' [keywords table format]' \
94+ {' (--format)-f' ,' (-f)--format' }' [keywords table format]:format:(fancy_grid fancy_outline github grid html jira latex latex_booktabs latex_longtable latex_raw mediawiki moinmoin orgtbl pipe plain presto pretty psql rst showkw simple textile tsv unsafehtml youtrack) ' \
8995 {' (--collapse)-c' ,' (-c)--collapse' }' [show collapsed list of arches]' \
9096 {' (--stable)-s' ,' (-s)--stable' }' [show stable arches]' \
9197 {' (--unstable)-u' ,' (-u)--unstable' }' [show unstable arches]' \
@@ -95,8 +101,42 @@ case $state in
95101 {' (--repo)-r' ,' (-r)--repo' }' [repo to query]:repo' \
96102 && ret=0
97103 ;;
98- (* )
99- _nothing
104+ (tatt)
105+ _arguments -C -A ' -* ' \
106+ $base_options \
107+ ' --api-key[Bugzilla API key]:api key' \
108+ {' (--job-name)-j' ,' (-j)--job-name' }' [name template for created job script]:name' \
109+ {' (--bug)-b' ,' (-b)--bug' }' [single bug to take package list from]:bug' \
110+ {' (--test)-t' ,' (-t)--test' }' [run test phase for the packages]' \
111+ {' (--use-combos)-u' ,' (-u)--use-combos' }' [maximal number USE combinations to be tested]:number' \
112+ ' --ignore-prefixes[USE flags prefixes that won' \' ' t be randomized]:prefixes' \
113+ ' (--use-random --use-expand-random)--use-default[prefer to use default use flags configuration]' \
114+ ' (--use-default --use-expand-random)--use-random[turn on random use flags, with default USE_EXPAND]' \
115+ ' (--use-default --use-random)--use-expand-random[turn on random use flags, including USE_EXPAND]' \
116+ {' (--packages)-p' ,' (-p)--packages' }' [extended atom matching of packages]:packages' \
117+ {' (--stablereq)-s' ,' (-s)--stablereq' }' [test packages for stable keywording requests]' \
118+ {' (--keywording)-k' ,' (-k)--keywording' }' [test packages for keywording requests]' \
119+ ' --template-file[template file to use for the job script]:template:_files' \
120+ ' --logs-dir[directory to save build logs for failing tasks]:dir:_files -/' \
121+ ' --emerge-opts[options to be passed to emerge invocations]:opts' \
122+ ' --extra-env-file[extra /etc/portage/env/ file names to be used]:files' \
123+ && ret= 0
124+ ;;
125+ (bugs)
126+ _arguments -C -A ' -*' \
127+ $base_options \
128+ ' --api-key[Bugzilla API key]:api key' \
129+ ' --dot[path file where to save the graph in dot format]:file:_files' \
130+ ' --edit-graph[open editor to modify the graph before filing bugs]' \
131+ ' --auto-cc-arches[automatically add CC-ARCHES for listed email addresses]:emails' \
132+ ' --find-by-maintainer[collect all packages maintained by listed email addresses]:emails' \
133+ ' --projects[include packages maintained by projects]' \
134+ ' --filter-stablereqs[filter targets for packages with active StableRequest result]' \
135+ ' --blocks[bugs which should be blocked by newly created bugs]:bugs' \
136+ ' --stabletime[stable request timeframe in days]:days' \
137+ {' (--stablereq)-s' ,' (-s)--stablereq' }' [file stable request bugs]' \
138+ {' (--keywording)-k' ,' (-k)--keywording' }' [file rekeywording bugs]' \
139+ && ret= 0
100140 ;;
101141 esac
102142 ;;
0 commit comments