Ability to echo back invoked command for docker
By setting `ECHO_DOCKER_COMMAND` to `true`, the mocked docker binary will echo back the command used to call it instead of mocking a response.
This commit is contained in:
@@ -1,4 +1,9 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
if [[ $ECHO_DOCKER_COMMAND == "true" ]]; then
|
||||||
|
echo "$(basename "$0") $*"
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
stop)
|
stop)
|
||||||
echo "testid"
|
echo "testid"
|
||||||
|
|||||||
Reference in New Issue
Block a user