File: _seafile

package info (click to toggle)
zsh 5.9-8
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 23,856 kB
  • sloc: ansic: 108,138; sh: 6,976; makefile: 722; perl: 687; awk: 291; sed: 16
file content (33 lines) | stat: -rw-r--r-- 1,150 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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"