...

/

Starting the Cobra Application

Starting the Cobra Application

Learn how to handle the user interface of our program using the Cobra framework.

Overview

Up to this point, we’ve had to write all of the code to define the command-line interface for our programs. We’ve had to handle flags, environment variables, and the execution logic. Cobra is a popular framework for designing CLI applications, and in this chapter, we’ll use it to handle the user interface of our program. If we ...