You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# _yabsnap.zsh# This function provides tab completion for the yabsnap command._yabsnap() {
local -a commands
commands=(
'list:List all managed snaps''list-json:Machine readable list of all managed snaps''create:Create new snapshots''create-config:Bootstrap a config for new filesystem to snapshot''delete:Delete a snapshot created by yabsnap''rollback-gen:Generate script to rollback one or more snaps'
)
local -a options
options=(
'-h[Show help message]''--help[Show help message]''--sync[Wait for btrfs to sync for any delete operations]''--config-file[Specify a config file to use]''--source[Restrict to config with this source path]''--dry-run[Disable all snapshot creation and deletion]''--verbose[Sets log-level to INFO]'
)
# Complete commandsif [[ $words[1] =="yabsnap" ]];then
_describe -t commands 'yabsnap command' commands
returnfi# Complete options for the commandsif [[ $words[1] =="yabsnap"&&$words[2] ]];then
_describe -t options 'yabsnap option' options
fi
}
# Register the completion function
compdef _yabsnap yabsnap
No description provided.
The text was updated successfully, but these errors were encountered: