tmutil.fish: Add completions for local-snapshots subcommands (#5995)

* tmutil.fish: Add local-snapshot subcommands

* tmutil.fish: Add completion for thinlocalsnapshots

* tmutil.fish: Run fish_indent

* tmutil.fish: Remove duplicate destinationinfo
This commit is contained in:
adiabatic 2019-07-16 23:40:15 -07:00 committed by Fabian Homborg
parent 8ec568d21f
commit 6ca56fe0cb

View File

@ -23,6 +23,7 @@ complete -f -c tmutil -n '__fish_seen_subcommand_from compare' -s E -d 'Dont tak
complete -r -c tmutil -n '__fish_seen_subcommand_from compare' -s I -d 'Ignore path'
complete -f -c tmutil -n '__fish_seen_subcommand_from compare' -s U -d 'Ignore logical volume identity'
complete -r -c tmutil -n '__fish_use_subcommand' -a delete -d 'Delete one or more snapshots'
complete -r -c tmutil -n '__fish_use_subcommand' -a deletelocalsnapshots -d 'Delete all local Time Machine snapshots for the specified date (formatted YYYY-MM-DD-HHMMSS)'
complete -f -c tmutil -n '__fish_use_subcommand' -a destinationinfo -d 'Print information about destinations'
complete -f -c tmutil -n '__fish_use_subcommand' -a disable -d 'Turn off automatic backups'
complete -f -c tmutil -n '__fish_use_subcommand' -a disablelocal -d 'Turn off local Time Machine snapshots'
@ -31,7 +32,10 @@ complete -f -c tmutil -n '__fish_use_subcommand' -a enablelocal -d 'Turn on loca
complete -r -c tmutil -n '__fish_use_subcommand' -a inheritbackup -d 'Claim a machine directory or sparsebundle for use by the current machine'
complete -f -c tmutil -n '__fish_use_subcommand' -a isexcluded -d 'Determine if a file, directory, or volume are excluded from backups'
complete -f -c tmutil -n '__fish_use_subcommand' -a latestbackup -d 'Print the path to the latest snapshot'
complete -c tmutil -n '__fish_use_subcommand' -a listlocalsnapshotdates -d 'List the creation dates of all local Time Machine snapshots'
complete -r -c tmutil -n '__fish_use_subcommand' -a listlocalsnapshots -d 'List local Time Machine snapshots of the specified volume'
complete -f -c tmutil -n '__fish_use_subcommand' -a listbackups -d 'Print paths for all snapshots'
complete -f -c tmutil -n '__fish_use_subcommand' -a localsnapshot -d 'Create new local Time Machine snapshots of all APFS volumes included in TM backup'
complete -f -c tmutil -n '__fish_use_subcommand' -a machinedirectory -d 'Print the path to the current machine directory'
complete -f -c tmutil -n '__fish_use_subcommand' -a removedestination -d 'Removes a backup destination'
complete -f -c tmutil -n '__fish_use_subcommand' -a removeexclusion -d 'Remove an exclusion'
@ -49,6 +53,7 @@ complete -f -c tmutil -n '__fish_seen_subcommand_from startbackup' -s b -l block
complete -f -c tmutil -n '__fish_seen_subcommand_from startbackup' -s r -l rotation -d 'Automatic rotation'
complete -r -c tmutil -n '__fish_seen_subcommand_from startbackup' -s d -l destination -d 'Backup destination'
complete -f -c tmutil -n '__fish_use_subcommand' -a stopbackup -d 'Cancel a backup currently in progress'
complete -r -c tmutil -n '__fish_use_subcommand' -a thinlocalsnapshots -d 'Thin local Time Machine snapshots for the specified volume'
complete -r -c tmutil -n '__fish_use_subcommand' -a uniquesize -d 'Analyze the specified path and determine its unique size'
complete -r -c tmutil -n '__fish_use_subcommand' -a verifychecksums -d 'Verify snapshot'
complete -f -c tmutil -n '__fish_use_subcommand' -a version -d 'Print version'