cli

package module
v0.0.0-...-65ba528 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2016 License: MIT Imports: 8 Imported by: 1

README

go-cli

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Arg

func Arg(name string, helpOptional ...string) *kingpin.ArgClause

func Cmd

func Cmd(name string, args ...string) (string, errs.Err)

func CmdPrintOutput

func CmdPrintOutput(name string, args ...string) errs.Err

func CmdPrintOutputEnv

func CmdPrintOutputEnv(env []string, name string, args ...string) errs.Err

func DisableYesNo

func DisableYesNo()

func Flag

func Flag(name string, helpOptional ...string) *kingpin.FlagClause

func GetGitBranch

func GetGitBranch() (branchName string)

func GetGitRoot

func GetGitRoot() (rootDir string)

func ParseArgs

func ParseArgs() string

func Run

func Run(fn func())

func RunFromGitRoot

func RunFromGitRoot(fn func())

func YesNo

func YesNo(argv ...interface{}) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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