diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2008-05-14 15:56:50 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2008-05-14 15:56:50 +0000 |
commit | 5e373b83a53c739fc6f53a632a1280179723b820 (patch) | |
tree | 204df0eba63951143601464a03eb0811d65d6528 | |
parent | e77c7c284464aadb15ddaf270d26f5b534d04830 (diff) | |
download | zsh-5e373b83a53c739fc6f53a632a1280179723b820.tar.gz zsh-5e373b83a53c739fc6f53a632a1280179723b820.tar.xz zsh-5e373b83a53c739fc6f53a632a1280179723b820.zip |
unposted: handle p4 sizes and license completion
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | Completion/Unix/Command/_perforce | 18 |
2 files changed, 21 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog index cd43d2313..43f47e45d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2008-05-14 Peter Stephenson <pws@csr.com> + * unposted: Completion/Unix/Command/_perforce: also p4 sizes, + p4 license. + * unposted: Completion/Unix/Command/_perforce: handle p4 protects. diff --git a/Completion/Unix/Command/_perforce b/Completion/Unix/Command/_perforce index a1308ffa5..8d4e7b4aa 100644 --- a/Completion/Unix/Command/_perforce +++ b/Completion/Unix/Command/_perforce @@ -2006,6 +2006,14 @@ _perforce_cmd_labelsync() { } +(( $+functions[_perforce_cmd_license] )) || +_perforce_cmd_license() { + _arguments -s : \ + '-o[write license to stdout]' \ + '-i[read license from stdin]' +} + + (( $+functions[_perforce_cmd_lock] )) || _perforce_cmd_lock() { _arguments -s : \ @@ -2207,6 +2215,16 @@ _perforce_cmd_set() { } +(( $+functions[_perforce_cmd_sizes] )) || +_perforce_cmd_sizes() { + _arguments -s : \ + '-a[show for all revisions]' \ + '-b[set blocksize]:blocksize in bytes: ' \ + '-s[sum the file sizes]' \ + '*:file:_perforce_files -tR' +} + + (( $+functions[_perforce_cmd_spec] )) || _perforce_cmd_spec() { _arguments -s : \ |