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

Get hands-on with 1400+ tech skills courses.