This tutorial will guide us through building an interactive CLI app with Go, Cobra and promptui. We will learn how to prompt the user for input data and persist this data to an SQLite database. This tutorial will guide us through building an interactive CLI app with Go, Cobra and promptui. We will learn how to prompt the user for input data and persist this data to an SQLite database.
A flag provides a way for the user to modify the behaviour of a command. In this tutorial, we will be learning how we can use a flag to retrieve dad jokes that contain a specific term. If you did not follow the first tutorial, but would like to follow along with this tutorial, you can use the finished code from the first part as your starting point.
In this tutorial, we will learn how to build a basic CLI tool with Go and Cobra. Go is very useful for building powerful CLI tools services and tools for productivity. They are a great way to automate all sorts of different everyday tasks. And who doesn’t need a Dadjoke at least once a day, right?