cli icon indicating copy to clipboard operation
cli copied to clipboard

cmd/docker: split handling exit-code to a separate utility

Open thaJeztah opened this issue 1 month ago • 5 comments

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)

thaJeztah avatar Jul 04 '24 13:07 thaJeztah