command

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2024 License: Apache-2.0 Imports: 22 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 MainFlag

func MainFlag() []cli.Flag

MainFlag main flags

Types

type GenerateConfig

type GenerateConfig struct {
	GitCloneUrl string

	ReleaseAs  string
	TagPrefix  string
	ReleaseTag string

	Infile  string
	Outfile string

	FromCommit string

	AutoPush bool
}

type GlobalCommand

type GlobalCommand struct {
	Name    string
	Version string
	Verbose bool
	DryRun  bool

	GitRootPath   string
	GitRemote     string
	ChangeLogSpec *convention.ConventionalChangeLogSpec

	RootCfg GlobalConfig

	GenerateConfig GenerateConfig
}

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