go-template-cli

command module
v0.2.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 14, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

README

go lightweight cobra template

Installation

# writes binary to GOPATH
make build
go-template-cli

or

go run main.go

Release

# dry run
goreleaser release --snapshot --clean
# verify your .goreleaser.yaml
goreleaser check
# do release
export GITHUB_TOKEN="YOUR_GH_TOKEN"
git tag -a v0.1.0 -m "First release"
git push origin v0.1.0
goreleaser release

Customize template

  • adjust module name
  • go through all files and rename go-template-cli with your project name
  • adjust GO_VERSION in Dockerfile
  • go version in go.mod
  • for each new command add a file in cmd/
Generate Markdown Documentation
make doc
Using cobra cli
install

go install github.com/spf13/cobra-cli@latest

create new command

cobra-cli add <CMD_NAME>

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL