Documentation ¶
Index ¶
- func BrowserLauncher() ([]string, error)
- func Check(err error)
- func CommandPath(cmd string) (string, error)
- func ConcatPaths(paths ...string) string
- func JSONPath(out io.Writer, src io.Reader, colorize bool)
- func RgbToTermColorCode(color *Color) string
- func TimeAgo(t time.Time) string
- type ArgsParser
- func (p *ArgsParser) AllValues(name string) []string
- func (p *ArgsParser) Bool(name string) bool
- func (p *ArgsParser) HasReceived(name string) bool
- func (p *ArgsParser) Int(name string) int
- func (p *ArgsParser) Parse(args []string) ([]string, error)
- func (p *ArgsParser) RegisterBool(name string, aliases ...string)
- func (p *ArgsParser) RegisterValue(name string, aliases ...string)
- func (p *ArgsParser) Value(name string) string
- type Color
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BrowserLauncher ¶
func CommandPath ¶
func ConcatPaths ¶
func RgbToTermColorCode ¶
Types ¶
type ArgsParser ¶
type ArgsParser struct { PositionalIndices []int HasTerminated bool // contains filtered or unexported fields }
func NewArgsParser ¶
func NewArgsParser() *ArgsParser
func NewArgsParserWithUsage ¶
func NewArgsParserWithUsage(usage string) *ArgsParser
func (*ArgsParser) AllValues ¶
func (p *ArgsParser) AllValues(name string) []string
func (*ArgsParser) Bool ¶
func (p *ArgsParser) Bool(name string) bool
func (*ArgsParser) HasReceived ¶
func (p *ArgsParser) HasReceived(name string) bool
func (*ArgsParser) Int ¶
func (p *ArgsParser) Int(name string) int
func (*ArgsParser) RegisterBool ¶
func (p *ArgsParser) RegisterBool(name string, aliases ...string)
func (*ArgsParser) RegisterValue ¶
func (p *ArgsParser) RegisterValue(name string, aliases ...string)
func (*ArgsParser) Value ¶
func (p *ArgsParser) Value(name string) string
Click to show internal directories.
Click to hide internal directories.