Server IP : 51.89.169.208 / Your IP : 216.73.216.211 Web Server : Apache System : Linux ns3209505.ip-198-244-202.eu 4.18.0-553.27.1.el8_10.x86_64 #1 SMP Tue Nov 5 04:50:16 EST 2024 x86_64 User : yellowleaf ( 1019) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /proc/self/root/usr/share/zsh/5.5.1/functions/ |
Upload File : |
#compdef plutil local ret=1 k v local -a context line state state_descr tmp fmts=( xml1 binary1 json ) local -A opt_args val_args types=( -bool 'boolean' -data 'base64-encoded data' -date 'date (XML property-list format)' -float '64-bit float' -integer '64-bit integer' -json 'JSON fragment' -xml 'XML property list' ) _arguments -s -S : \ '(: -)-help[display help information]' \ '(-p -r)-s[suppress normal output]' \ '*:input file:_files' \ - set1 \ '-lint[check input for syntax errors]' \ - set2 \ "(-extract -insert -replace -remove)-convert[convert to specified format]:output format:(${(j< >)fmts})" \ "(-convert -insert -replace -remove)-extract[extract value at specified key path from property list]: :->k:output format:(${(j< >)fmts})" \ '(-convert -extract -replace -remove)-insert[insert value at specified key path into property list]: :->k: :->t: :->v' \ '(-convert -extract -insert -remove)-replace[replace value at specified key path in property list]: :->k: :->t: :->v' \ '(-convert -extract -insert -replace)-remove[remove value at specified key path from property list]: :->k' \ '(-o -extract -insert -replace -remove)-e[specify output file extension]:output file extension' \ '(-e -extract -insert -replace -remove)-o[specify output file]:output file:_files' \ '(-r -s)-p[pretty-print property list]' \ '(-p -s)-r[pretty-print JSON]' \ && ret=0 case $state in k) _message 'key path' && ret=0 ;; t) tmp=() for k v in ${(kv)types}; do tmp+=( "${k}[${v}]" ) done _values 'value type' $tmp && ret=0 ;; v) if [[ $words[(CURRENT - 1)] == -bool ]]; then _values $types[-bool] YES NO true false && ret=0 elif (( $+types[$words[(CURRENT - 1)]] )); then _message $types[$words[(CURRENT - 1)]] && ret=0 else _message value && ret=0 fi ;; esac return ret