Adding Commands With the Cobra Generator
In this lesson, you'll learn how to use the Cobra generator to generate an application skeleton from scratch.
We'll cover the following...
We will build our simple calculator on top of the skeleton. Next, we will add a couple more options like pre-run and post-run hooks that we skipped over in the previous lesson. Let’s start by understanding what the Cobra generator is, how it works, and when you should use it. ...