summaryrefslogtreecommitdiffstats
path: root/Completion
diff options
context:
space:
mode:
authorAurélien Olivier <aurelien@aolivier.eu>2019-03-04 21:49:39 +0100
committerOliver Kiddle <okiddle@yahoo.co.uk>2019-05-06 17:03:59 +0200
commit3908987b4ae831da48732b60fa6843ab33feafbc (patch)
treed20b1fcc1b6ce206ac686c482e1b2fc1a0ebff6b /Completion
parentgithub #35: fix _arguments spec for gem push completion (diff)
downloadzsh-3908987b4ae831da48732b60fa6843ab33feafbc.tar
zsh-3908987b4ae831da48732b60fa6843ab33feafbc.tar.gz
zsh-3908987b4ae831da48732b60fa6843ab33feafbc.tar.bz2
zsh-3908987b4ae831da48732b60fa6843ab33feafbc.tar.lz
zsh-3908987b4ae831da48732b60fa6843ab33feafbc.tar.xz
zsh-3908987b4ae831da48732b60fa6843ab33feafbc.tar.zst
zsh-3908987b4ae831da48732b60fa6843ab33feafbc.zip
github #33: Add completion file for myrepos (mr)
Diffstat (limited to 'Completion')
-rw-r--r--Completion/Unix/Command/_myrepos126
1 files changed, 126 insertions, 0 deletions
diff --git a/Completion/Unix/Command/_myrepos b/Completion/Unix/Command/_myrepos
new file mode 100644
index 000000000..d26c1245b
--- /dev/null
+++ b/Completion/Unix/Command/_myrepos
@@ -0,0 +1,126 @@
+#compdef mr
+
+#
+# A zsh completion script for myrepos (http://myrepos.branchable.com/)
+#
+
+# This script does not handle user defined alias nor user defined actions (lib,
+# plugins)
+
+
+local curcontext="$curcontext" state state_descr line ret=1
+local -a arguments
+typeset -A opt_args
+typeset -g mr_subcommands mr_alias
+
+arguments=(
+ '(-d --directory)'{-d,--directory}'[specify the topmost directory that mr should work in]:directory:_files -/'
+ '(-c --config)'{-c,--config}'[use the specified mrconfig file]:mrconfig:_files'
+ '(-f --force)'{-f,--force}'[force mr to act on repositories that would normally be skipped]'
+ '--force-env[force mr to execute even though potentially dangerous env variables]'
+ '(-v --verbose)'{-v,--verbose}'[be verbose]'
+ '(-m --minimal)'{-m,--minimal}'[minimise output]'
+ '(-q --quiet)'{-q,--quiet}"[suppress mr's usual output]"
+ '(-k --insecure)'{-k,--insecure}'[accept untrusted SSL certificates when bootstrapping]'
+ '(-s --stats)'{-s,--stats}'[expand the statistics line displayed at the end]'
+ '(-i --interactive)'{-i,--interactive}'[start a subshell if a repository fails to be processed]'
+ '(-n --no-recurse)'{-n,--no-recurse}'[specify the recursivity depth into repositories]::number'
+ '(-j --jobs)'{-j,--jobs}'[number of jobs run in parallel]::number'
+ '--cache[save the command result to ~/.mrcache/]'
+ '--cached[process cached commands]'
+ '--uncache[remove the cached output]'