Skip to content

Commit 29cf861

Browse files
committed
pkgdev tatt: new tool for package testing
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
1 parent b08761b commit 29cf861

5 files changed

Lines changed: 531 additions & 1 deletion

File tree

data/share/bash-completion/completions/pkgdev

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ _pkgdev() {
1212
mask
1313
push
1414
showkw
15+
tatt
1516
"
1617

1718
local base_options="
@@ -194,6 +195,40 @@ _pkgdev() {
194195
;;
195196
esac
196197
;;
198+
tatt)
199+
subcmd_options="
200+
--api-key
201+
-j --job-name
202+
-b --bug
203+
-t --test
204+
-u --use-combos
205+
--ignore-prefixes
206+
--use-default
207+
--use-random
208+
--use-expand-random
209+
-p --package
210+
-s --stablereq
211+
-k --keywording
212+
--template-file
213+
--logs-dir
214+
--emerge-opts
215+
"
216+
217+
case "${prev}" in
218+
-[jbup] | --api-key | --job-name | --bug | --use-combos | --package | --emerge-opts)
219+
COMPREPLY=()
220+
;;
221+
--template-file)
222+
COMPREPLY=($(compgen -f -- "${cur}"))
223+
;;
224+
--logs-dir)
225+
COMPREPLY=($(compgen -d -- "${cur}"))
226+
;;
227+
*)
228+
COMPREPLY+=($(compgen -W "${subcmd_options}" -- "${cur}"))
229+
;;
230+
esac
231+
;;
197232
esac
198233
}
199234
complete -F _pkgdev pkgdev

pyproject.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ classifiers = [
2828
dynamic = ["version"]
2929

3030
dependencies = [
31-
"snakeoil~=0.10.3",
31+
"snakeoil~=0.10.4",
3232
"pkgcore~=0.12.16",
3333
"pkgcheck~=0.10.16",
3434
]
@@ -42,6 +42,10 @@ doc = [
4242
"sphinx",
4343
"tomli; python_version < '3.11'"
4444
]
45+
tatt = [
46+
"nattka",
47+
"Jinja2",
48+
]
4549

4650
[project.urls]
4751
Homepage = "https://github.com/pkgcore/pkgdev"

0 commit comments

Comments
 (0)