Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/contrib/completion/bash
diff options
context:
space:
mode:
authorChristian Heusel <christian@heusel.eu>2023-04-15 19:44:22 +0200
committerLevente Polyak <anthraxx@archlinux.org>2023-05-20 00:08:13 +0200
commited966351410b39bfcec749df59dbc434a5dade1e (patch)
treee32d30d3bc2f14d5bc2b3b19b71491034a228a3a /contrib/completion/bash
parentf961e2e94803dd46c4fa5941eb15a7d4612bd0f0 (diff)
pkgctl repo: introduce the switch subcommand
Signed-off-by: Christian Heusel <christian@heusel.eu> Co-Authored-By: Levente Polyak <anthraxx@archlinux.org>
Diffstat (limited to 'contrib/completion/bash')
-rw-r--r--contrib/completion/bash/devtools.in19
1 files changed, 19 insertions, 0 deletions
diff --git a/contrib/completion/bash/devtools.in b/contrib/completion/bash/devtools.in
index e3ae023..e79b862 100644
--- a/contrib/completion/bash/devtools.in
+++ b/contrib/completion/bash/devtools.in
@@ -255,6 +255,7 @@ _pkgctl_repo_cmds=(
clone
configure
create
+ switch
web
)
@@ -282,6 +283,24 @@ _pkgctl_repo_create_args=(
)
+_pkgctl_repo_switch_args=(
+ --discard-changes
+ -f --force
+ -h --help
+)
+_pkgctl_repo_switch_opts() {
+ local subcommand args
+ subcommand=(repo switch)
+ args=$(__pkgctl_word_count_after_subcommand "${subcommand[@]}")
+
+ if (( args == 0 )); then
+ :
+ elif (( args >= 1 )); then
+ _filedir -d;
+ fi
+}
+
+
_pkgctl_repo_web_args=(
-h --help
)