From dd72827714c4f01bc727383c821d0a38ecf435dc Mon Sep 17 00:00:00 2001 From: LingxianKong Date: Sat, 25 Apr 2015 17:38:19 +0800 Subject: [PATCH] Update commands bash completion script * add a set of action-execution commands * add workflow-validate&workbook-validate commands * delete some commands not supported any more [todo] * replace hard coded commands with a dynamic way Change-Id: Ia8b10e282fdb7fa8266f290192807a6fb2210065 --- tools/mistral.bash_completion | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tools/mistral.bash_completion b/tools/mistral.bash_completion index 9c92d0da..701c0f8b 100644 --- a/tools/mistral.bash_completion +++ b/tools/mistral.bash_completion @@ -5,6 +5,11 @@ _mistral() declare -A SUBCOMMANDS declare -A OPTS + OPTS["action-execution-get"]="-h --help -f --format -c --column --max-width --prefix" + OPTS["action-execution-get-input"]="-h --help" + OPTS["action-execution-get-output"]="-h --help" + OPTS["action-execution-list"]="-h --help -f --format -c --column --max-width --quote" + OPTS["action-execution-update"]="-h --help -f --format -c --column --max-width --prefix --state --output" OPTS["action-create"]="-h --help -f --format -c --column --max-width --quote" OPTS["action-delete"]="-h --help" OPTS["action-get"]="-h --help -f --format -c --column --max-width --variable --prefix" @@ -30,22 +35,23 @@ _mistral() OPTS["execution-update"]="-h --help -f --format -c --column --max-width --variable --prefix" OPTS["help"]="-h --help" OPTS["task-get"]="-h --help -f --format -c --column --max-width --variable --prefix" - OPTS["task-get-input"]="-h --help" OPTS["task-get-result"]="-h --help" + OPTS["task-get-published"]="-h --help -f --format -c --column --max-width --variable --prefix" OPTS["task-list"]="-h --help -f --format -c --column --max-width --quote" - OPTS["task-update"]="-h --help -f --format -c --column --max-width --variable --prefix" OPTS["workbook-create"]="-h --help -f --format -c --column --max-width --variable --prefix" OPTS["workbook-delete"]="-h --help" OPTS["workbook-get"]="-h --help -f --format -c --column --max-width --variable --prefix" OPTS["workbook-get-definition"]="-h --help" OPTS["workbook-list"]="-h --help -f --format -c --column --max-width --quote" OPTS["workbook-update"]="-h --help -f --format -c --column --max-width --variable --prefix" + OPTS["workbook-validate"]="-h --help -f --format -c --column --max-width --prefix" OPTS["workflow-create"]="-h --help -f --format -c --column --max-width --quote" OPTS["workflow-delete"]="-h --help" OPTS["workflow-get"]="-h --help -f --format -c --column --max-width --variable --prefix" OPTS["workflow-get-definition"]="-h --help" OPTS["workflow-list"]="-h --help -f --format -c --column --max-width --quote" OPTS["workflow-update"]="-h --help -f --format -c --column --max-width --quote" + OPTS["workflow-validate"]="-h --help -f --format -c --column --max-width --prefix" COMMANDS="${!OPTS[*]}" COMPREPLY=()