If you’ve been following the blog, you know that I’m a fan of cobra as a CLI library. Let me share how I use tabwriter to compliment cobra’s autogenerated help information. For reference, you can check this post as well.
The following code is a copy (not an exact copy) of one of the tools that I use at work.
It will look something like this.
---
If you have any questions or feedback, please reach out @flowerinthenyt.