cli
cli copied to clipboard
cmd/docker: split handling exit-code to a separate utility
This allows dockerMain() to return an error "as usual", and puts the responsibility for turning that into an appropriate exit-code in main() (which also sets the exit-code when terminating).
We could consider putting this utility in the cli package and exporting it if would be useful for doing a similar handling in plugins.
- A picture of a cute animal (not mandatory but encouraged)