...

/

Creating an Application Skeleton With the Cobra Generator

Creating an Application Skeleton With the Cobra Generator

Now, let's run the Cobra generator to generate a skeleton for our calculator demo application and examine the generated directory structure and code.

Creating an application skeleton with the Cobra generator

Let’s start by creating an application called calc-app. We can skip the Viper configuration for now and use no license. Type the following command in the terminal below. You can use your name instead of Gigi

$ cobra init calc-app --pkg-name calc-app --license=none --viper=false --author= Gigi

Type the above command in the terminal below and explore the created calc-app directory and its contents.

Terminal 1
Terminal
Loading...
...