1.
Introduction
1.1.
What is Cobra?
1.2.
The anatomy of a commandline interface
1.3.
A more complex interface
2.
Hands on with Cobra
2.1.
The Cobra CLI
2.2.
Creating a new project
2.3.
The Root Command
2.4.
Adding Relevant Help Text
2.5.
Adding a subcommand
2.6.
Implementing Logic
2.7.
Wiring up Arguments
2.8.
Returning an error
2.9.
Enforcing Expectations on Arguments
2.10.
Writing to STDOUT and STDERR
2.11.
Adding an alias
2.12.
Adding another subcommand
2.13.
Adding a flag
2.14.
Adding subcommands to subcommands
2.15.
Marking commands deprecated
2.16.
Adding hidden commands
2.17.
Adding persistent flags
2.18.
Testing
3.
Final Word
4.
Appendix
4.1.
Links
4.2.
Cat in Go
Light (default)
Rust
Coal
Navy
Ayu
A Primer on Cobra
Appendix