#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-backups:List all snapshots with \"dobackup\" in their name'
'-s:--list-snaps:List all snapshots'
'--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-server\" and \"--backup-all\", default value is \"auto-backup\"'
'--delete-older-than:Delete backups older than, in days'
'--delete-snap:Delete the snapshot with given name or id'
'--backup:Shutdown, Backup, Then Restart the given droplet using \"droplet id\"'
'--keep:Keep this backup, these don\'t get deleted when using --delete-older-than'
'--backup-all:Shutdown, Backup, Then Restart all droplets with \"--tag-name\"'
'--shutdown:Shutdown, the droplet with given name or id'
'--powerup:Powerup, the droplet with given name or id'
'--restore-droplet:Restore, the droplet with given name or id'
'--restore-to:Snapshot id or name, to restore the droplet to')
_describe 'command' subcmds
