From 10ec0d8102a3189a3cefd565586bc4e226d41157 Mon Sep 17 00:00:00 2001 From: Hugues Hiegel Date: Fri, 8 Jun 2012 18:26:35 +0200 Subject: [Completion] Q : better sdk-factory managment. --- net:foret/completion/_sdk-factory.sh | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) (limited to 'net:foret') diff --git a/net:foret/completion/_sdk-factory.sh b/net:foret/completion/_sdk-factory.sh index 53f1cca..d3face0 100644 --- a/net:foret/completion/_sdk-factory.sh +++ b/net:foret/completion/_sdk-factory.sh @@ -1,7 +1,24 @@ #compdef sdk-factory.sh -_arguments -A "-*" -- \ - "=FILE*:file:_files"\ - "{-c,--config}:file:_files"\ - "*:targets:($([ -n "\$TARGET" ] && for i in "" "-PLUGIN" "-APPSDK" "-PERF" ; echo \$TARGET$i))" +local arguments + +arguments=( + '(-s)'{-a,--enable-all-protocols}'[Enable all protocols]' + {-c+,--config=}'[Selects config FILE to use]:file:_files' + {-d,--debug-make}'[Add debugging verbosity to make]' + '(-p)'{-f,--framework-only}'[Generates only the framework libraries]' + '(-f)'{-p,--protocols-only}'[Generates only the protocols bundle libraries]' + {-g,--enable-debug-info}'[Enable debug info in binaries]' + {-h,--enable-host}'[Enable host binaries building]' + {-n,--nomake}'[No make done]' + {-s,--enable-specific-protocols}'[Enable specific protocols]' + {-v,--verbose}'[Enable verbose compilation]' + '1:targets:(($([ -n "$TARGET" ] && for i in "\:Standard_SDK"\ + "-PLUGIN\:Plugin_SDK"\ + "-APPSDK\:Advanced_Plugin_SDK"\ + "-PERF\:Performance_tests" ;\ + echo $TARGET$i)))' + ) + +_arguments -s $arguments -- cgit v1.2.3