template-go-cli

command module
v0.0.0-...-c97413f Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2022 License: MIT Imports: 3 Imported by: 0

README

Software License Build status Release

Golang application template repository

Clone and replace template-go-cli with the name of your project.

Github action will use goreleaser to automatically releases formula to homebrew repo at hoto/homebrew-repo on every git tag.

Installation

Mac:

brew install hoto/homebrew-repo/template-go-cli

Mac or Linux:

sudo curl -L \
  "https://github.com/hoto/template-go-cli/releases/download/1.0.0/template-go-cli_1.0.0_$(uname -s)_$(uname -m)" \
   -o /usr/local/bin/template-go-cli

sudo chmod +x /usr/local/bin/template-go-cli

Or manually download binary from releases.

Run
template-go-cli --help
template-go-cli --version
template-go-cli
Development

Build and test:

go get github.com/hoto/template-go-cli

make dependencies build test

Build binary:

 make build
./bin/template-go-cli

Run with arguments:

make args="myargs" run

Install to global golang bin directory:

make install
template-go-cli
Release

Add a git tag and push it to GH. GH action will pick it up and goreleaser will publish to https://github.com/hoto/homebrew-repo

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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