Ditch __fish_sgrep in obnam completions

This commit is contained in:
Fabian Homborg 2016-02-28 18:05:16 +01:00
parent 60bd3c809a
commit 5446841069

View File

@ -1,9 +1,10 @@
function nocommand
if commandline | __fish_sgrep -qe "add-key\|backup\|client-keys\|clients\|diff\|dump-repo\|force-lock\|forget\|fsck\|generations\|genids\|list-keys\|list-toplevels\|ls\|mount\|nagios-last-backup-age\|remove-client\|remove-key\|restore\|verify"
if __fish_seen_subcommand_from add-key backup client-keys clients diff \
dump-repo force-lock forget fsck generations genids list-keys list-toplevels ls mount nagios-last-backup-age remove-client remove-key restore verify
return 1
end
return 0
end
return 0
end
complete --command obnam --no-files --condition nocommand --arguments 'add-key' --description 'Adds an encryption key to the repository'