command

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: MPL-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AgentCommand

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

func (*AgentCommand) Help

func (c *AgentCommand) Help() string

Help should return long-form help text that includes the command-line usage, a brief few sentences explaining the function of the command, and the complete list of flags the command accepts.

func (*AgentCommand) Run

func (c *AgentCommand) Run(args []string) int

Run should run the actual command with the given CLI instance and command-line arguments. It should return the exit status when it is finished.

There are a handful of special exit codes this can return documented above that change behavior.

func (*AgentCommand) Synopsis

func (c *AgentCommand) Synopsis() string

Synopsis should return a one-line, short synopsis of the command. This should be less than 50 characters ideally.

type VersionCommand

type VersionCommand struct {
	Version string
}

func (*VersionCommand) Help

func (c *VersionCommand) Help() string

func (*VersionCommand) Run

func (c *VersionCommand) Run(_ []string) int

func (*VersionCommand) Synopsis

func (c *VersionCommand) Synopsis() string

Jump to

Keyboard shortcuts

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