1. 1. Introduction
    1. 1.1. What is Cobra?
    2. 1.2. The anatomy of a commandline interface
    3. 1.3. A more complex interface
  2. 2. Hands on with Cobra
    1. 2.1. The Cobra CLI
    2. 2.2. Creating a new project
    3. 2.3. The Root Command
    4. 2.4. Adding Relevant Help Text
    5. 2.5. Adding a subcommand
    6. 2.6. Implementing Logic
    7. 2.7. Wiring up Arguments
    8. 2.8. Returning an error
    9. 2.9. Enforcing Expectations on Arguments
    10. 2.10. Writing to STDOUT and STDERR
    11. 2.11. Adding an alias
    12. 2.12. Adding another subcommand
    13. 2.13. Adding a flag
    14. 2.14. Adding subcommands to subcommands
    15. 2.15. Marking commands deprecated
    16. 2.16. Adding hidden commands
    17. 2.17. Adding persistent flags
    18. 2.18. Testing
  3. 3. Final Word
  4. 4. Appendix
    1. 4.1. Links
    2. 4.2. Cat in Go

A Primer on Cobra

Appendix