A simple command-line application built with Go and Cobra that fetches random quotes from an API.
- Fetch a random quote along with the author's name using the
qtcommand. - Built with the Cobra CLI library for easy command-line interface creation.
- Go 1.23.6 or later installed on your system.
- Internet connection to fetch quotes from the API.
- Clone the repository:
git clone https://github.com/mir-asif01/simple_cli_app.git
cd simple_cli_app- Install Dependencies:
go mod tidy- Build the Application:
go build -o quote- Run:
./quote qtThis will fetch a random quote and display it in the terminal.
Output
Quote : "The only limit to our realization of tomorrow is our doubts of today."
Author : Franklin D. Roosevelt