Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/szuecs/go-cli
Template project to use for CLI applications
https://github.com/szuecs/go-cli
Last synced: 4 days ago
JSON representation
Template project to use for CLI applications
- Host: GitHub
- URL: https://github.com/szuecs/go-cli
- Owner: szuecs
- License: mit
- Created: 2016-04-26T10:14:52.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-11-30T19:36:59.000Z (about 8 years ago)
- Last Synced: 2024-10-31T10:12:42.191Z (about 2 months ago)
- Language: Go
- Size: 9.77 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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=
DST=//$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 "[email protected]/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