diff options
author | Hugues Hiegel <hugues.hiegel@qosmos.com> | 2014-10-23 15:03:41 +0200 |
---|---|---|
committer | Hugues Hiegel <hugues.hiegel@qosmos.com> | 2014-10-24 10:38:13 +0200 |
commit | de8cb6c64e9d2ae451a969ed6cd2af79a30fbc2d (patch) | |
tree | 8b40c5b229b7afc580dccef544217fe1ce1a1e34 /net:foret/compsys/sdk/_endurance | |
parent | a4b31794d10bef9be211f661898bd012cf4e5566 (diff) |
[Completion] discards compaudit error messages
- give fpath folders to root:root, with go-w
- do the same for the parent folder of each....
Diffstat (limited to 'net:foret/compsys/sdk/_endurance')
-rw-r--r-- | net:foret/compsys/sdk/_endurance | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/net:foret/compsys/sdk/_endurance b/net:foret/compsys/sdk/_endurance new file mode 100644 index 0000000..1af5d51 --- /dev/null +++ b/net:foret/compsys/sdk/_endurance @@ -0,0 +1,29 @@ +#compdef do.sh + +_endurance() { + + list-commands () { + grep '^[[:blank:]]*".*"[[:blank:]]*)' do.sh | tr '")\t|\n' ' ' | tr -s ' ' + } + + list-tests () { + echo all + find /mnt/endurancetesting/ -mindepth 1 -maxdepth 1 -type d ! -name '.*' | cut -d'/' -f4 + } + + list-nodes () { + < /mnt/endurancetesting/planning awk '!/^#|^$/ { if ( ! seen[$1] ) { seen[$1]=1 ; print $1 } }' + } + + case "$service" in + do.sh) + _arguments \ + ':actions:(( $(list-commands) ))' \ + ':tests:(( $(list-tests) ))' \ + ':nodes:(( $(list-nodes) ))' + _alternative \ + '*:files: _files' + ;; + esac + +} |