global

package
v0.0.0-...-b3686c0 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2018 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFlags

func GetFlags() []cli.Flag

GetFlags returns all global flags

Types

type Flags

type Flags struct {
	User   string
	Config string
	Debug  bool
}

Flags represents global cli flags passed to go-t

func ParseFlags

func ParseFlags(c *cli.Context) *Flags

ParseFlags parses a cli context and returns a Flags struct

func (*Flags) IsConfigSet

func (g *Flags) IsConfigSet() bool

IsConfigSet indicates if the global config flag is set

func (*Flags) IsUserSet

func (g *Flags) IsUserSet() bool

IsUserSet indicates if the global user flag is set

Jump to

Keyboard shortcuts

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