]> git.cameronkatri.com Git - ldid.git/commitdiff
Add zsh completions file for common flags
authorCameron Katri <me@cameronkatri.com>
Tue, 5 Jul 2022 00:53:57 +0000 (20:53 -0400)
committerCameron Katri <me@cameronkatri.com>
Tue, 5 Jul 2022 00:53:57 +0000 (20:53 -0400)
_ldid [new file with mode: 0644]

diff --git a/_ldid b/_ldid
new file mode 100644 (file)
index 0000000..db8a90a
--- /dev/null
+++ b/_ldid
@@ -0,0 +1,17 @@
+#compdef ldid ldid2
+
+_arguments \
+       '-S-[Add signature]:entitlements:_files' \
+       '-Q-[Embed requirements]:requirements:_files' \
+       '(-S)-r[Remove signature]' \
+       '(-r)-h[Print signature information]' \
+       '-q[Print requirements]' \
+       '-e[Print entitlements]' \
+       '-M[Merge entitlements]' \
+       '*-C-[Flags]:flags:(adhoc enforcement expires hard host kill library-validation restrict runtime)' \
+       '-H-[Hash type]:hash:(sha1 sha256)' \
+       '-I-[Set identifier]:identifier' \
+       '-K-[Signing private key]:key:_files' \
+       '-P[Set as platform]' \
+       '-U-[Password for -K]' \
+       '*: :_files'