command

package
v0.0.0-...-7fb2483 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2023 License: Apache-2.0, MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GlobalAction

func GlobalAction(c *cli.Context) error

GlobalAction do command Action flag.

func GlobalAfterAction

func GlobalAfterAction(c *cli.Context) error

GlobalAfterAction

do command Action after flag global.

func GlobalBeforeAction

func GlobalBeforeAction(c *cli.Context) error

GlobalBeforeAction do command Action before flag global.

func GlobalFlag

func GlobalFlag() []cli.Flag

GlobalFlag Other modules also have flags

func HideGlobalFlag

func HideGlobalFlag() []cli.Flag

func TestMain

func TestMain(m *testing.M)

Types

type GlobalCommand

type GlobalCommand struct {
	Name    string
	Version string
	Verbose bool
	RootCfg GlobalConfig
}

GlobalCommand

command root

func CmdGlobalEntry

func CmdGlobalEntry() *GlobalCommand

CmdGlobalEntry

return global command entry

type GlobalConfig

type GlobalConfig struct {
	LogLevel      string
	TimeoutSecond uint
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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