4 # Tugboat zsh autocompletion
9 'add-key:[NAME] Upload an ssh public key.'
10 'authorize:Authorize a DigitalOcean account with tugboat.'
11 'create:[NAME] Create a droplet.'
12 'destroy:[FUZZY_NAME] Destroy a droplet.'
13 'destroy_image:[FUZZY_NAME] Destroy an image.'
14 'droplets:Retrieve a list of your droplets.'
15 'halt:[FUZZY_NAME] Shutdown a droplet.'
16 'help:[COMMAND] Describe commands or a specific command.'
17 'images:Retrieve a list of your images.'
18 'info:[FUZZY_NAME] [OPTIONS] Show a droplets information.'
19 'info_image:[FUZZY_NAME] [OPTIONS] Show an images information.'
20 'keys:Show available SSH keys.'
21 'password-reset:[FUZZY_NAME] Reset root password.'
22 'rebuild:[FUZZY_NAME] [IMAGE_NAME] Rebuild a droplet.'
23 'regions:Show regions.'
24 'resize:[FUZZY_NAME -s, --size=N] Resize a droplet.'
25 'restart:[FUZZY_NAME] Restart a droplet.'
26 'sizes:Show available droplet sizes.'
27 'snapshot:[SNAPSHOT_NAME] [FUZZY_NAME] [OPTIONS] Queue a snapshot of the droplet.'
28 'ssh:[FUZZY_NAME] SSH into a droplet.'
29 'start:[FUZZY_NAME] Start a droplet.'
30 'verify:Check your DigitalOcean credentials.'
31 'version:Show version.'
32 'wait:[FUZZY_NAME] Wait for a droplet to reach a state.'
35 local -a _create_arguments
37 '-s:[--size=N] The size_id of the droplet'
38 '-i:[--image=N] The image_id of the droplet'
39 '-r:[--region=N] The region_id of the droplet'
40 '-k:[--keys=KEYS] A comma separated list of SSH key ids to add to the droplet'
41 '-p:[--private-networking] Enable private networking on the droplet'
42 '-b:[--backups-enabled] Enable backups on the droplet'
51 arguments=(add-key authorize create destroy destroy_image droplets halt help images info info_image keys password-reset rebuild regions resize restart sizes snapshot ssh start verify version wait)
53 _wanted tasks expl 'help' compadd $arguments
58 _wanted application expl 'command' compadd $(command tugboat droplets | cut -d " " -f1)
63 local curcontext="$curcontext" state line
67 ':command:->command' \
68 '*::options:->options'
72 _describe -t commands "gem subcommand" _create_arguments
78 local curcontext="$curcontext" state line
82 ':command:->command' \
83 '*::options:->options'
87 _describe -t commands "gem subcommand" _commands
94 _arguments ':feature:__task_list'
98 _arguments ':feature:__droplets_list'
102 _arguments ':feature:__tugboat-create'