#compdef dobackup
local -a subcmds
subcmds=('-v:Show version' '-h:Show help'
'--init:Initialise by storing access token to .token file'
'-l:--list-droplets:List all droplets'
'--list-droplets:List all droplets'
'-s:--list-snaps:List all snapshots'
'--list-snaps:List all snapshots'
'--list-backups:List all snapshots with \"dobackup\" in their name'
'--list-tagged:List droplets using \"--tag-name\"'
'--list-tags:List all used tags'
'--list-older-than:List snaps older than, in days'
'--tag-droplet:Add tag to the provided droplet name or id'
'--untag-droplet:Remove tag from the provided droplet name or id'
'--tag-name:To be used with "--list-tags", "--tag-droplet" and "--backup-all", default value is "dobackup"'
'--delete-older-than:Delete backups older than, in days'
'--delete-snap:Delete the snapshot with given name or id'
'--backup:Shutdown, Backup (snapshot), Then Restart the given droplet using \"droplet name\" or \"droplet id\"'
'--backup-all:Shutdown, Backup (snapshot), Then Restart all droplets with \"--tag-name\"'
'--live-backup:Backup (snapshot), the droplet with given name or id, without shutting it down'
'--live-backup-all:Backup (snapshot), all droplets with the given "--tag-name", without shutting them down'
'--keep:To keep backups for long term. "--delete-older-than" wont delete these, Used with: "--backup","--backup-all"'
'--shutdown:Shutdown, the droplet with the given name or id'
'--powerup:Power Up, the droplet with the given name or id'
'--restore-droplet:Restore, the droplet with the given name or id'
'--restore-to:Snapshot id or name, to restore the droplet to')
_describe 'command' subcmds
