go-cli
Go CLI is a template project, that you can use to build your
CLI Apps.
Usage
To create a new CLI application, you can do the following steps
APP=<appname>
DST=<repo-hoster>/<user>/$APP
mkdir -p $GOPATH/src/$DST
go get -u github.com/szuecs/go-cli
rsync -a --exclude=.git $GOPATH/src/github.com/szuecs/go-cli/ $GOPATH/src/$DST
cd $GOPATH/src/$DST
grep -rl go-cli | xargs sed -i "s@github.com/szuecs/go-cli@$DST@g"
grep -rl go-cli | xargs sed -i "s@go-cli@$APP@g"
The main package and function of the CLI app is in
main.go. It parses flags, lookups ENV and merges the configuration to
start your CLI application.
Configuring your client, use the following make target:
% make config