Skip to content

Commit dd72827

Browse files
author
LingxianKong
committed
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
1 parent ae19300 commit dd72827

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

tools/mistral.bash_completion

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ _mistral()
55
declare -A SUBCOMMANDS
66
declare -A OPTS
77

8+
OPTS["action-execution-get"]="-h --help -f --format -c --column --max-width --prefix"
9+
OPTS["action-execution-get-input"]="-h --help"
10+
OPTS["action-execution-get-output"]="-h --help"
11+
OPTS["action-execution-list"]="-h --help -f --format -c --column --max-width --quote"
12+
OPTS["action-execution-update"]="-h --help -f --format -c --column --max-width --prefix --state --output"
813
OPTS["action-create"]="-h --help -f --format -c --column --max-width --quote"
914
OPTS["action-delete"]="-h --help"
1015
OPTS["action-get"]="-h --help -f --format -c --column --max-width --variable --prefix"
@@ -30,22 +35,23 @@ _mistral()
3035
OPTS["execution-update"]="-h --help -f --format -c --column --max-width --variable --prefix"
3136
OPTS["help"]="-h --help"
3237
OPTS["task-get"]="-h --help -f --format -c --column --max-width --variable --prefix"
33-
OPTS["task-get-input"]="-h --help"
3438
OPTS["task-get-result"]="-h --help"
39+
OPTS["task-get-published"]="-h --help -f --format -c --column --max-width --variable --prefix"
3540
OPTS["task-list"]="-h --help -f --format -c --column --max-width --quote"
36-
OPTS["task-update"]="-h --help -f --format -c --column --max-width --variable --prefix"
3741
OPTS["workbook-create"]="-h --help -f --format -c --column --max-width --variable --prefix"
3842
OPTS["workbook-delete"]="-h --help"
3943
OPTS["workbook-get"]="-h --help -f --format -c --column --max-width --variable --prefix"
4044
OPTS["workbook-get-definition"]="-h --help"
4145
OPTS["workbook-list"]="-h --help -f --format -c --column --max-width --quote"
4246
OPTS["workbook-update"]="-h --help -f --format -c --column --max-width --variable --prefix"
47+
OPTS["workbook-validate"]="-h --help -f --format -c --column --max-width --prefix"
4348
OPTS["workflow-create"]="-h --help -f --format -c --column --max-width --quote"
4449
OPTS["workflow-delete"]="-h --help"
4550
OPTS["workflow-get"]="-h --help -f --format -c --column --max-width --variable --prefix"
4651
OPTS["workflow-get-definition"]="-h --help"
4752
OPTS["workflow-list"]="-h --help -f --format -c --column --max-width --quote"
4853
OPTS["workflow-update"]="-h --help -f --format -c --column --max-width --quote"
54+
OPTS["workflow-validate"]="-h --help -f --format -c --column --max-width --prefix"
4955

5056
COMMANDS="${!OPTS[*]}"
5157
COMPREPLY=()

0 commit comments

Comments
 (0)