command

package
v0.0.0-...-fb5fdcc Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	TestFlag = &cli.BoolFlag{
		Name:    "test",
		Aliases: []string{"t"},
		Usage:   "test configuration and exit",
	}
	ConfigFlag = &cli.StringFlag{
		Name:        "config",
		Aliases:     []string{"c"},
		Value:       "config.yaml",
		DefaultText: "config.yaml",
		Usage:       "set configuration file",
	}
	SignalFlag = &cli.StringFlag{
		Name:    "signal",
		Aliases: []string{"s"},
		Usage:   "send signal to a master process: stop, quit, reload",
		Value:   "",
	}
	HelpFlag    = cli.HelpFlag
	VersionFlag = cli.VersionFlag
)

Functions

func Setup

func Setup(app *cli.App, fn CommandFunc)

Types

type Command

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

func New

func New(
	handler *handler.Handler,
	script *script.Script,
) *Command

type CommandFunc

type CommandFunc func(string) (*Command, func(), error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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