mirror of
https://github.com/mikefarah/yq.git
synced 2024-12-19 20:19:04 +00:00
4b2b47af48
4ec533b
introduced a bug which causes the 'hidden' cli parameter
`__complete` to be ignored.
Add a check for this parameter, so that it can pass to `cobra`
Signed-off-by: Tom Whitwell <tom@whi.tw>
10 lines
188 B
Bash
Executable File
10 lines
188 B
Bash
Executable File
#!/bin/bash
|
|
|
|
testCompletionRuns() {
|
|
result=$(./yq __complete "" 2>&1)
|
|
assertEquals 0 $?
|
|
assertContains "$result" "Completion ended with directive:"
|
|
}
|
|
|
|
source ./scripts/shunit2
|