- CLI which gives random quotes of Kanye, built using GO.
- A CLI has 3 parts apart from the rootword (ye), namely
Command Argument --Flag
Rootword for this CLI - ye
- The ye CLI has only 1 command,
raNdom
, which is self explanatory.
I assume that you've the GO compiler installed in your system, else no worries just Google about it and get it installed.
- Open your terminal and run the
go get github.com/beanboi7/ye
command in a convenient directory. - Now build the CLI using
go build main.go
and you should see amain.exe
in the current directory. - Type the root word
ye
followed by the commandraNdom
and a Kanye quote pops out.
- In linux distros, before running
go get github.com/beanboi7/ye
, don't forget to export PATH variable that points to bin folder. - (ignore this step if PATH is already set)
export PATH=$PATH:/usr/local/go/bin
export GOPATH="$HOME/go"
PATH="$GOPATH/bin:$PATH"