Skip to content

Commit 6819d87

Browse files
committed
pkgdev bugs: new tool for filing stable bugs
This new tool isn't complete, and any usage should be manually monitored for failures or incorrect results. This tool will be improved in the future, but for now it's a good start. Resolves: #113 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
1 parent 0ba8f7d commit 6819d87

3 files changed

Lines changed: 541 additions & 0 deletions

File tree

data/share/bash-completion/completions/pkgdev

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ _pkgdev() {
77
_init_completion || return
88

99
local subcommands="
10+
bugs
1011
commit
1112
manifest
1213
mask
@@ -229,6 +230,27 @@ _pkgdev() {
229230
;;
230231
esac
231232
;;
233+
bugs)
234+
subcmd_options="
235+
--api-key
236+
--auto-cc-arches
237+
--dot
238+
-s --stablereq
239+
-k --keywording
240+
"
241+
242+
case "${prev}" in
243+
--api-key | --auto-cc-arches)
244+
COMPREPLY=()
245+
;;
246+
--dot)
247+
COMPREPLY=($(compgen -f -- "${cur}"))
248+
;;
249+
*)
250+
COMPREPLY+=($(compgen -W "${subcmd_options}" -- "${cur}"))
251+
;;
252+
esac
253+
;;
232254
esac
233255
}
234256
complete -F _pkgdev pkgdev

0 commit comments

Comments
 (0)