commit
55a3314a2d
35
src/_ccache
35
src/_ccache
|
@ -1,6 +1,6 @@
|
||||||
#compdef ccache -P -value-,CCACHE_*,-default-
|
#compdef ccache -P -value-,CCACHE_*,-default-
|
||||||
|
|
||||||
# zsh completion script for ccache
|
# zsh completion script for ccache 4.6.1
|
||||||
|
|
||||||
# Copyright 2018 CERN for the benefit of the LHCb Collaboration.
|
# Copyright 2018 CERN for the benefit of the LHCb Collaboration.
|
||||||
|
|
||||||
|
@ -307,13 +307,30 @@ elif [[ $words[2] == -* ]]; then
|
||||||
'*'{-o,--set-config=}"[set configuration key]:keys:__ccache_config_keys" \
|
'*'{-o,--set-config=}"[set configuration key]:keys:__ccache_config_keys" \
|
||||||
'(: -)'{-h,--help}'[show help message]' \
|
'(: -)'{-h,--help}'[show help message]' \
|
||||||
'(: -)'{-V,--version}'[print version and copyright information]' \
|
'(: -)'{-V,--version}'[print version and copyright information]' \
|
||||||
'(-z --zero-stats)'{-z,--zero-stats}'[zero statistics counters]' \
|
|
||||||
'(-c --cleanup)'{-c,--cleanup}'[delete old files and recalculate size counters]' \
|
'(-c --cleanup)'{-c,--cleanup}'[delete old files and recalculate size counters]' \
|
||||||
'(-C --clear)'{-C,--clear}'[clear the cache completely (except configuration)]' \
|
'(-C --clear)'{-C,--clear}'[clear the cache completely (except configuration)]' \
|
||||||
'(-p --show-config)'{-p,--show-config}'[show current configuration options]' \
|
'--config-path[operate on configuration file PATH instead of the default]: :_files' \
|
||||||
'(-s --show-stats)'{-s,--show-stats}'[show statistics summary]' \
|
'(-d --dir)'{-d,--dir}'[operate on cache directory PATH instead of the default]: :_files -/' \
|
||||||
|
'--evict-namespace[remove file created in namespace NAMESPACE]:namespace' \
|
||||||
|
'--evict-older-than[remove files older than AGE]:age' \
|
||||||
'(-F --max-files=)'{-F,--max-files=}'[set maximum number of files in cache]:number of files in cache: ' \
|
'(-F --max-files=)'{-F,--max-files=}'[set maximum number of files in cache]:number of files in cache: ' \
|
||||||
'(-M --max-size=)'{-M,--max-size=}'[set maximum size of cache]:cache size: '
|
'(-M --max-size=)'{-M,--max-size=}'[set maximum size of cache]:cache size: ' \
|
||||||
|
'(-X --recompress)'{-X,--recompress}'[recompress the cache to level LEVEL]:level' \
|
||||||
|
\*{-o,--set-config}'[set configuration item KEY to value VAL]:key_val' \
|
||||||
|
'(-p --show-config)'{-p,--show-config}'[show current configuration options]' \
|
||||||
|
'--show-log-stats[print statistics counters from the stas log in human-readable format]' \
|
||||||
|
'(-s --show-stats)'{-s,--show-stats}'[show statistics summary]' \
|
||||||
|
'(-v --verbose)'{-v,--verbose}'[increase verbosity]' \
|
||||||
|
'(-z --zero-stats)'{-z,--zero-stats}'[zero statistics counters]' \
|
||||||
|
'--trim-dir[remove old files from directory _PATH_]: :_files -/' \
|
||||||
|
'--trim-max-size[specify the maximum size for --trim-dir]:size' \
|
||||||
|
'--trim-method[specify the method for --trim-dir]: :(atime mtime)' \
|
||||||
|
'--checksum-file[print the checksum of the file at PATH]: :_files' \
|
||||||
|
'--extract-result[extract file data stored in result file at PATH to the current working directory]' \
|
||||||
|
'(-k --get-config)'{-k,--get-config}'[print the value of configuration key]:key' \
|
||||||
|
'--hash-file[print the hash of the file at PATH]: :_files' \
|
||||||
|
'--inspect[print result/manifest file at PATH in human-readable format]' \
|
||||||
|
'--print-stats[print statistics counter IDs and corresponding values in machine-parsable format]'
|
||||||
elif [[ $CURRENT -eq 2 ]]; then
|
elif [[ $CURRENT -eq 2 ]]; then
|
||||||
_ccache_compilers
|
_ccache_compilers
|
||||||
else
|
else
|
||||||
|
@ -323,3 +340,11 @@ else
|
||||||
shift words
|
shift words
|
||||||
_normal
|
_normal
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Local Variables:
|
||||||
|
# mode: Shell-Script
|
||||||
|
# sh-indentation: 2
|
||||||
|
# indent-tabs-mode: nil
|
||||||
|
# sh-basic-offset: 2
|
||||||
|
# End:
|
||||||
|
# vim: ft=zsh sw=2 ts=2 et
|
||||||
|
|
Loading…
Reference in New Issue