cli

package
v0.0.0-...-a1efa92 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GlobalOpts struct {
	LogLevel string `` /* 153-byte string literal not displayed */
}

GlobalOpts defines all global command line flags.

Functions

func AddCommand

func AddCommand(cmd flags.Commander, name, shortDescription, longDescription string) (*flags.Command, error)

AddCommand wraps the flags.Parser.AddCommand() method.

func Execute

func Execute() error

Execute wraps the flags.Parser.Parse() method and eats the error if it is the help message.

func Version

func Version() string

Version is a getter for the version variable.

Types

This section is empty.

Jump to

Keyboard shortcuts

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