mirror of https://github.com/databricks/cli.git
This commit is contained in:
parent
7fb464b496
commit
b5e21231eb
|
@ -5,13 +5,7 @@ hello, world
|
||||||
>>> [CLI] bundle exec -- pwd
|
>>> [CLI] bundle exec -- pwd
|
||||||
[TMPDIR]
|
[TMPDIR]
|
||||||
|
|
||||||
>>> [CLI] bundle exec -- echo --help
|
>>> [CLI] bundle exec -- --help
|
||||||
--help
|
Error: starting "--help" failed: exec: "--help": executable file not found in $PATH
|
||||||
|
|
||||||
>>> [CLI] bundle exec -- bash -c exit 5
|
|
||||||
Error: Running "bash -c exit 5" failed with exit code: 5
|
|
||||||
|
|
||||||
Exit code: 1
|
Exit code: 1
|
||||||
|
|
||||||
>>> [CLI] bundle exec -- bash -c echo hello > /dev/stderr
|
|
||||||
hello
|
|
||||||
|
|
|
@ -2,8 +2,9 @@ trace $CLI bundle exec -- echo "hello, world"
|
||||||
|
|
||||||
trace $CLI bundle exec -- pwd
|
trace $CLI bundle exec -- pwd
|
||||||
|
|
||||||
# The CLI should not parse the --help flag and should pass it as is to echo.
|
# The CLI should not parse the --help flag and should try to run it as an executable
|
||||||
trace $CLI bundle exec -- echo --help
|
# instead.
|
||||||
|
trace $CLI bundle exec -- --help
|
||||||
|
|
||||||
# The error message should include the exit code.
|
# The error message should include the exit code.
|
||||||
errcode trace $CLI bundle exec -- bash -c "exit 5"
|
errcode trace $CLI bundle exec -- bash -c "exit 5"
|
||||||
|
|
Loading…
Reference in New Issue