Skip to content

mir-asif01/simple_cli_app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple CLI Quote Generator

A simple command-line application built with Go and Cobra that fetches random quotes from an API.

Features

  • Fetch a random quote along with the author's name using the qt command.
  • Built with the Cobra CLI library for easy command-line interface creation.

Prerequisites

  • Go 1.23.6 or later installed on your system.
  • Internet connection to fetch quotes from the API.

Installation

  1. Clone the repository:
git clone https://github.com/mir-asif01/simple_cli_app.git
cd simple_cli_app
  1. Install Dependencies:
    go mod tidy
  1. Build the Application:
    go build -o quote
  1. Run:
    ./quote qt

This 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

Thank you

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages