107 points · by marpaia · 9y ago · 10 comments
In terms of logging I am also wondering if something like zerolog[2] might be a better choice than go-kit's logger given its higher performance
[1] https://github.com/jawher/mow.cli [2] https://github.com/rs/zerolog
The only downside to the oklog-style seems to be that you can't introspect the full cli tool at runtime, which rules out things like outputting documentation or shell completion files.
It's doable, but it was hard and while cobra is a nice library, it's probably overkill unless you're a project like kubernetes.
Most projects in Go are very small in terms of configuration surface, and something like https://github.com/kolide/launcher/blob/9dcf149957b9e9757a24... is much cleaner IMO.
It's exciting to see that TUF is now a CNCF project.