Skip to content

trstringer/go-template-cli-simple

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple CLI Go template

Quickly create the boilerplate for a simple Go CLI.

Usage

This requires gonew:

go install golang.org/x/tools/cmd/gonew@latest

Create your CLI:

gonew github.com/trstringer/go-template-cli-simple your-domain.com/your-project

Or to use a specific version/ref of the upstream template:

gonew github.com/trstringer/go-template-cli-simple@<git_ref> your-domain.com/your-project

The new project/module is created in the project directory:

cd ./your-project

Run setup:

make setup

Tests

Run unit tests:

make test

Run e2e tests:

make e2e

About

Go template for a simple CLI

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published