Skip to content

Commit

Permalink
add extra echo of command to help debug
Browse files Browse the repository at this point in the history
  • Loading branch information
crstamps2 committed May 30, 2023
1 parent ae82777 commit 36ae80b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/shared.bash
Original file line number Diff line number Diff line change
Expand Up @@ -190,27 +190,34 @@ function run_docker_compose() {
local command=(docker-compose)
if [[ "$(plugin_read_config CLI_VERSION "1")" == "2" ]] ; then
command=(docker compose)
echo "Command: ${command}"
fi

if [[ "$(plugin_read_config VERBOSE "false")" == "true" ]] ; then
command+=(--verbose)
echo "Command: ${command}"
fi

if [[ "$(plugin_read_config ANSI "true")" == "false" ]] ; then
command+=(--no-ansi)
echo "Command: ${command}"
fi

# Enable compatibility mode for v3 files
if [[ "$(plugin_read_config COMPATIBILITY "false")" == "true" ]]; then
command+=(--compatibility)
echo "Command: ${command}"
fi

for file in $(docker_compose_config_files) ; do
command+=(--file "$file")
echo "Command: ${command}"
done

command+=(--project-name "$(docker_compose_project_name)")

echo "final command: ${command}"

plugin_prompt_and_run "${command[@]}" "$@"
}

Expand Down

0 comments on commit 36ae80b

Please sign in to comment.