commands

package
v1.6.2 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GRACEFUL_TIMEOUT = 5 * time.Second

Functions

func Execute

func Execute(a AppInfo) error

func UsageOnError added in v1.3.0

func UsageOnError(cmd *cobra.Command, err error)

Types

type AppInfo added in v1.5.0

type AppInfo struct {
	Name      string
	Version   string
	BuildTime string
	Revision  string
}

Jump to

Keyboard shortcuts

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