cmd

package
v0.0.0-...-f617e85 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2016 License: MIT Imports: 9 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppConfig

type AppConfig struct {
	// contains filtered or unexported fields
}

func App

func App() *AppConfig

func (*AppConfig) Command

func (app *AppConfig) Command(name string, description string, f func(Flags))

func (*AppConfig) Global

func (app *AppConfig) Global(f func(Flags))

func (*AppConfig) Run

func (app *AppConfig) Run()

func (*AppConfig) Usage

func (app *AppConfig) Usage()

type Config

type Config struct {
	// contains filtered or unexported fields
}

func NewConfig

func NewConfig(filepath string) (*Config, error)

func (*Config) Int

func (c *Config) Int(key string) int

func (*Config) String

func (c *Config) String(key string) string

type Flags

type Flags interface {
	BoolVar(*bool, string, bool, string)
	String(string, string, string) *string
	Duration(string, time.Duration, string) *time.Duration
	Parse()
	Var(goflag.Value, string, string)
	Int(string, int, string) *int
}

Jump to

Keyboard shortcuts

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