command
module
Version:
v0.2.3
Opens a new window with list of versions in this module.
Published: Aug 14, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
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
¶
There is no documentation for this package.
Source Files
¶
Directories
¶
|
|
|
internal
|
|
|
|
|
|
|
|
Click to show internal directories.
Click to hide internal directories.