command

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2025 License: ISC Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command struct {
	ui.UI

	Help    bool `flag:"help"`
	Version bool `flag:"version"`
	Verbose bool `flag:"verbose"`

	Out   string `flag:"out"`
	Name  string `flag:"name"`
	Debug bool   `flag:"debug"`
	// contains filtered or unexported fields
}

Command represents the "emerge" command and its associated flags.

func New

func New(u ui.UI) (*Command, error)

New creates a new instance of the command.

func (*Command) PrintHelp

func (c *Command) PrintHelp() error

PrintHelp prints the help text for the command.

func (*Command) Run

func (c *Command) Run(args []string) error

Run runs the actual command with the given command-line arguments. This method is used as a proxy for creating dependencies and the actual command execution is delegated to the run method for testing purposes.

Jump to

Keyboard shortcuts

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