cli

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2014 License: LGPL-3.0 Imports: 6 Imported by: 3

Documentation

Overview

Package cli provides common utilities for commandline handling in conjunction with codegansta/cli

Index

Constants

View Source
const (
	StreamsPerInputDeviceFlagName = "streams-per-input-device"
	LogLevelFlagName              = "verbosity"
	FileExcludePatternFlagName    = "file-exclude-patterns"
)

Variables

This section is empty.

Functions

func AddAdditinalFlags added in v1.1.0

func AddAdditinalFlags(a *cli.App)

func CheckCommonFlags added in v1.1.0

func CheckCommonFlags(c *cli.Context) (nr int, level api.Importance, filters []api.FileFilter, err error)

As CheckCommonFlagsAndInit, but will return all parsed and verified common values, including an optional error

func CheckCommonFlagsAndInit added in v1.1.0

func CheckCommonFlagsAndInit(cmd api.Runner, c *cli.Context) error

Check common args and init a command with them. Further init and checking should be done in specialized function

func CliFinishApp added in v1.1.0

func CliFinishApp(c *cli.Context) error

func MakeLogHandler added in v1.1.0

func MakeLogHandler(maxLogLevel api.Importance) func(r api.Result)

func RunAction

func RunAction(cmd api.Runner, c *cli.Context)

Runs a standard runner from within the cli, dealing with errors accoringly

Types

This section is empty.

Directories

Path Synopsis
Package app provides a codegansta/cli.App initialized with all known godi commands.
Package app provides a codegansta/cli.App initialized with all known godi commands.

Jump to

Keyboard shortcuts

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