Skip to content

EsmerlinJM/github-secrets-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

github-secrets-cli

Go Report Card

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).

Pre-requisits

Install Go in 1.16 version minimum.

or:

Open in Gitpod

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

About

CLI for upload secrets or env values to github repositories.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages