api documentation for ec_parse
[protos/libecoli.git] / test-completion.sh
1
2 # complete -F _parser_options dummy_command
3
4 _parser_options()
5 {
6         local curr_arg
7         local i
8
9         curr_arg=${COMP_WORDS[COMP_CWORD]}
10
11         # remove the command name, only keep args
12         words=( "${COMP_WORDS[@]}" )
13         unset words[0]
14
15         IFS=$'\n' read -d '' -r -a COMPREPLY <<- EOF
16         $(./build/parse-yaml --complete -i examples/yaml/test.yaml -o pipo -- "${words[@]}")
17         EOF
18 }