go-cli

command module
v0.0.0-...-34130e6 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2016 License: MIT Imports: 10 Imported by: 0

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=<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

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package conf handles the configuration of the applications.
Package conf handles the configuration of the applications.

Jump to

Keyboard shortcuts

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