go-github-secrets-cli
This repo contains a simple CLI (Command Line Interface) application in Go, with a basic code organization. We use:
- net/http package to retrieve our cute Gophers
- Cobra for creating powerful modern CLI applications
- Viper to …
go-github-secrets-cli use Taskfile (a Makefile alternative).
Pre-requisits
Install Go in 1.16 version minimum.
or:
Build the app
$ go build -o bin/go-github-secrets-cli main.go
or
$ task build
Run the app
$ ./bin/go-github-secrets-cli
or
$ task run
Test the app
$ ./bin/github-secrets-cli
Github Secrets CLI application written in Go.
Usage:
go-github-secrets-cli [command]
Available Commands:
completion generate the autocompletion script for the specified shell
get This command will get the desired Gopher
help Help about any command
...
$ ./bin/github-secrets-cli get-gopher friends
Try to get 'friends' Gopher...
Perfect! Just saved in friends.png!
$ file friends.png
friends.png: PNG image data, 1156 x 882, 8-bit/color RGBA, non-interlaced