summaryrefslogtreecommitdiff
path: root/Completion/Unix/Command/_seafile
diff options
context:
space:
mode:
authorAxel Beckert <abe@deuxchevaux.org>2020-02-14 01:58:20 +0100
committerAxel Beckert <abe@deuxchevaux.org>2020-02-14 01:58:20 +0100
commitbfc5d42735c1660263904ec5254cccf539a0a458 (patch)
tree9bbb81b4a53941427e6f9e65ae55027d9108df8c /Completion/Unix/Command/_seafile
parent74561cc51b8867e43cb2937ab2edfb36e2a829bf (diff)
parent643de931640e01aa246723d2038328ef33737965 (diff)
downloadzsh-bfc5d42735c1660263904ec5254cccf539a0a458.tar.gz
zsh-bfc5d42735c1660263904ec5254cccf539a0a458.zip
Merge tag 'zsh-5.7.1-test-3' into debian
Test release: 5.7.1-test-3
Diffstat (limited to 'Completion/Unix/Command/_seafile')
-rw-r--r--Completion/Unix/Command/_seafile33
1 files changed, 33 insertions, 0 deletions
diff --git a/Completion/Unix/Command/_seafile b/Completion/Unix/Command/_seafile
new file mode 100644
index 000000000..bd36c0ac8
--- /dev/null
+++ b/Completion/Unix/Command/_seafile
@@ -0,0 +1,33 @@
+#compdef seaf-cli
+
+local -a commands
+
+commands=(
+ "init\:'initialize config directory'"
+ "start\:'start seafile daemon'"
+ "stop\:'stop seafile daemon'"
+ "list\:'list local libraries'"
+ "list-remote\:'list remote libraries'"
+ "status\:'show syncing status'"
+ "download\:'download a library from seafile server'"
+ "download-by-name\:'download a library defined by name from seafile server'"
+ "sync\:'sync a library with an existing foler'"
+ "desync\:'desync a library with seafile server'"
+ "create\:'create a library'"
+ "config\:'configure seafile client'"
+)
+
+_arguments \
+ ":command:(($commands))" \
+ {-h,--help}'[show help]' \
+ {-c,--confdir}'[specify config directory]:config directory:_files -/' \
+ {-d,--dir,--folder}'[directory]:directory:_directories' \
+ {-s,--server}'[URL for seafile server]':server \
+ {-u,--username}'[username]':username \
+ {-p,--password}'[password]':password \
+ {-a,--tfa}'[two-factor authentication]':tfa \
+ {-l,--library}'[library id]':library \
+ {-e,--libpasswd}'[library password]':libpasswd \
+ {-k,--key}'[configuration key]':key \
+ {-v,--value}'[configuration value]':value \
+ "*: :_files"