Add kmutil ArgumentParser completions

This is another one like Shortcuts.
This commit is contained in:
Aaron Gyes 2021-11-04 19:54:44 -07:00
parent e0b67ed466
commit f910133c82
2 changed files with 12 additions and 1 deletions

View file

@ -0,0 +1,11 @@
# SYNOPSIS
# kmutil <subcommand>
# kmutil <load|unload|showloaded>
# kmutil <find|libraries|print-diagnostics>
# kmutil <create|inspect|check|log|dumpstate>
# kmutil <clear-staging|trigger-panic-medic>
# kmutil -h
if [ (command -v kmutil) = /usr/bin/kmutil ]
command kmutil --generate-completion-script=fish | source
end

View file

@ -5,7 +5,7 @@
# imagine my surprise when I found fish function stirngs in binaries in /usr/bin!
# checking the path is as expected is about as far as we're going with validation
if [ command -v shortcuts = /usr/bin/shortcuts ]
if [ (command -v shortcuts) = /usr/bin/shortcuts ]
command shortcuts --generate-completion-script=fish | source
end