Fix exit code of `docker exec` command not being used
Call os.exit at the top level so that:
- event metrics are still emitted
- all
defered methods have been run
- Didn't use
os.ExitinDockerExecas that would preventdefered methods from being run - Didn't use
os.Exitin each of the sub commands as that would prevent metric events from being emitted - Didn't use
cobra.Command.RunEand return anerroras they aren't all errors and the usage text is displayed
Bug: T307583
TODO
-
Update changelog -
Remove WIP:prefix from commit message