diff options
author | Gautam Iyer <gautam@math.cmu.edu> | 2019-05-07 17:27:56 -0400 |
---|---|---|
committer | Oliver Kiddle <okiddle@yahoo.co.uk> | 2019-09-27 00:44:10 +0200 |
commit | 3c761b5f23cacf6a29b9dc675a4fbbfc2ecf35eb (patch) | |
tree | 2c087eaa95c432c96cf5efe9f8b5aadb7675652b /Completion/Unix | |
parent | 6711985b4bff41f622d96e02f7dc62485f21fe3c (diff) | |
download | zsh-3c761b5f23cacf6a29b9dc675a4fbbfc2ecf35eb.tar.gz zsh-3c761b5f23cacf6a29b9dc675a4fbbfc2ecf35eb.tar.xz zsh-3c761b5f23cacf6a29b9dc675a4fbbfc2ecf35eb.zip |
gitlab !9: Rudimentary seafile client completion
Diffstat (limited to 'Completion/Unix')
-rw-r--r-- | Completion/Unix/Command/_seafile | 33 |
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" |