December 2021
Intermediate to advanced
510 pages
11h 20m
English
Now that the interface and the back-end code are ready, you need a way to launch your application. You’ll use the Cobra framework again to have a standard way to handle command-line parameters and configuration files. Switch back to your application’s root directory and use the Cobra framework generator as you did in Chapter 7, Using the Cobra CLI Framework, to generate the initial boilerplate code:
| | $ cd $HOME/pragprog.com/rggo/interactiveTools/pomo |
| | $ cobra init --pkg-name pragprog.com/rggo/interactiveTools/pomo |
| | Using config file: /home/ricardo/.cobra.yaml |
| | Your Cobra application is ready at |
| | /home/ricardo/pragprog.com/rggo/interactiveTools/pomo |
Cobra Config File | |
|---|---|
|
This command uses ... | |
Read now
Unlock full access