command

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2018 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ApiToken option = iota
)

Variables

This section is empty.

Functions

func AuthorizedCommandAction

func AuthorizedCommandAction(fun generateCommandFunc) func(ctx *cli.Context) error

func CommandAction

func CommandAction(fun generateCommandFunc) func(ctx *cli.Context) error

func GetApiToken

func GetApiToken(c *cli.Context) string

Types

type Command

type Command interface {
	VerifyInput() error
	Run(authorization *api.Authorization) (string, error)
}

type Config

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

func (Config) Dig

func (conf Config) Dig(key string) (Config, error)

func (Config) Get

func (conf Config) Get(key string) []byte

Jump to

Keyboard shortcuts

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