util

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: May 26, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BoolVar

func BoolVar(rawArgs []string, args Flag) bool

func CheckArgs

func CheckArgs(c *ishell.Context, args []Flag) error

func GetConfig added in v1.1.1

func GetConfig(pathName string) (*config.Config, error)

func HelpText

func HelpText(c *ishell.Context, args []Flag) bool

func Info

func Info(a ...interface{})

func IntVar

func IntVar(rawArgs []string, args Flag) (int, error)

func StringSliceVar

func StringSliceVar(rawArgs []string, args Flag) []string

func StringVar

func StringVar(rawArgs []string, args Flag) string

func Warn

func Warn(a ...interface{})

Types

type Flag

type Flag struct {
	Name  string
	Usage string
	Must  bool
	Value interface{}
}

Jump to

Keyboard shortcuts

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