From 35bc811310bb0698bad138163b7b6c5c4aa8102a Mon Sep 17 00:00:00 2001 From: "Z. Grace Moreau" Date: Fri, 8 Nov 2019 08:04:59 -0700 Subject: [PATCH] add completions for `plutil` --- share/completions/plutil.fish | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 share/completions/plutil.fish diff --git a/share/completions/plutil.fish b/share/completions/plutil.fish new file mode 100644 index 000000000..84dd89d43 --- /dev/null +++ b/share/completions/plutil.fish @@ -0,0 +1,14 @@ +complete -c plutil -o help -d "Show usage information and exit" +complete -c plutil -o lint -d "Check plist files for syntax errors" +complete -c plutil -o convert -xa "xml1 binary1 json swift objc" -d "Rewrite file in FORMAT" +complete -c plutil -s r -n "__fish_seen_argument -s convert; and __fish_seen_subcommand_from json" -d "Pretty-print JSON" +complete -c plutil -s o -r -n "__fish_seen_argument -s convert" -d "Alternate path for conversion result" +complete -c plutil -s e -x -n "__fish_seen_argument -s convert" -d "Alternate extension for converted files" +complete -c plutil -o header -n "__fish_seen_argument -s convert; and __fish_seen_subcommand_from objc" -d "Convert FILE to Obj-C literal and create a .h file" +complete -c plutil -o insert -x -d "Insert VALUE into the plist" +complete -c plutil -o replace -x -d "Overwrite existing VALUE in the plist" +complete -c plutil -o type -n "__fish_seen_argument -o insert; or __fish_seen_argument -o replace" -xa "-bool -integer -float -string -date -data -xml -json" +complete -c plutil -o remove -x -d "Removes the value at KEYPATH" +complete -c plutil -o extract -x -d "Outputs the value at KEYPATH as a new plist" +complete -c plutil -s p -d "Print the plist in a human-readable fashion" +complete -c plutil -s s -d "Be silent on success"