From 5e373b83a53c739fc6f53a632a1280179723b820 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Wed, 14 May 2008 15:56:50 +0000 Subject: unposted: handle p4 sizes and license completion --- Completion/Unix/Command/_perforce | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'Completion') 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 : \ -- cgit 1.4.1