This repo contains a simple CLI (Command Line Interface) application in Go, with a basic code organization. We use:
- net/http package to retrieve REST API
- Cobra for creating powerful modern CLI applications
- Viper for configuration files
- Sodium for encrypt values for Github Secrets
go-github-secrets-cli use Taskfile (a Makefile alternative).
Install Go in 1.16 version minimum.
or:
$ go build -o bin/go-github-secrets-cli main.go
or
$ task build
$ ./bin/go-github-secrets-cli
or
$ task run
$ ./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