jawher / mow.cli

A versatile library for building CLI applications in Go
MIT License
872 stars 55 forks source link

Extension: Quick start template #122

Open TomFreudenberg opened 2 years ago

TomFreudenberg commented 2 years ago

Hey out there on mow.cli - thanks for sharing that component.

Here is a fast starting template - maybe usefull if someone just want to see mow.cli in action.

Cheers Tom


Quick start


Clone the repository and install necessary go tools:

# just clone from GitHub
git clone -b master-local --depth=1 https://github.com/TomFreudenberg/golang-cli-cmd-dev-starter.git my-project

# drop connection to GitHub template while want to create your own stuff
rm -rf my-project/.git

# enter project directory
cd my-project

# update versions and go.sum
make go-mod

# install necessary gol tools
make go-tools

Just run the first command:

make run CMD=hello

Or build and run the first command:

make cmd CMD=hello
./bin/hello --help
TomFreudenberg commented 2 years ago

Ups :-) the repo:

https://github.com/TomFreudenberg/golang-cli-cmd-dev-starter/tree/master-local