cli

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CLI

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

func New

func New(version string) *CLI

func (*CLI) AddBoolVar

func (c *CLI) AddBoolVar(name string, usage string) *bool

func (*CLI) AddDurationVar

func (c *CLI) AddDurationVar(name, defValue string, usage string, opts *FlagOptions) *time.Duration

func (*CLI) AddIntVar

func (c *CLI) AddIntVar(name string, defValue int, usage string, opts *FlagOptions) *int

func (*CLI) AddStringVar

func (c *CLI) AddStringVar(name, defValue string, usage string, opts *FlagOptions) *string

func (*CLI) AddUintVar

func (c *CLI) AddUintVar(name string, defValue uint, usage string, opts *FlagOptions) *uint

func (*CLI) Parse

func (c *CLI) Parse()

type FlagOptions

type FlagOptions struct {
	Required bool
	PreHook  func(string) (string, error)
}

Jump to

Keyboard shortcuts

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