octolab / cli

💾 Toolkit for command line interfaces.
https://go.octolab.org/toolkit/cli
MIT License
0 stars 0 forks source link

errors: define error with error code supporting #18

Open kamilsk opened 2 years ago

kamilsk commented 2 years ago

Motivation: Silent error is not enough for a better experience with CLI https://github.com/octolab/cli/blob/d3a8508eadb758359ef9573f9d9001a54203dd53/errors/silent.go#L7-L13. Need to define abstract error with exit code support and ake it useful for go-tool and go-service templates.

To do: