Related Issue: #61
The following PR Added propagating verbose to subcommands support
Areas of discussion
In the Canasta-CLI, internal commands can propagate verbose to their internal subcommands, but can't propagate verbose to external subcommands called by exec.Command().
To get more info when executing external subcommands especially docker-compose, I passed the verbose flag to the external subcommands from their parent commands.
Changes made
Added the 'GetVerbose()' function in the logging package
Implemented a conditional statement before executing the external command to determine whether to include the '--verbose' argument based on the value of the verbose flag.
Test
Only docker-compose has the –-verbose option among these external commands, so the following show the commands successfully propagate verbose to docker-compose subcommands.
This is my first time contributing to the community. Any feedback or suggestions are greatly appreciated.
Related Issue: #61 The following PR Added propagating verbose to subcommands support
Areas of discussion
In the Canasta-CLI, internal commands can propagate verbose to their internal subcommands, but can't propagate verbose to external subcommands called by exec.Command(). To get more info when executing external subcommands especially docker-compose, I passed the verbose flag to the external subcommands from their parent commands.
Changes made
Test
Only docker-compose has the –-verbose option among these external commands, so the following show the commands successfully propagate verbose to docker-compose subcommands.
This is my first time contributing to the community. Any feedback or suggestions are greatly appreciated.