command

package
v0.0.0-...-e8cd029 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Add

type Add struct{ Meta }

func (*Add) Help

func (a *Add) Help() string

func (*Add) Run

func (a *Add) Run(args []string) int

func (*Add) Synopsis

func (a *Add) Synopsis() string

type Meta

type Meta struct{}

Meta is the common options and features for all commands.

func (*Meta) FatalError

func (m *Meta) FatalError(err error) int

FatalError prints err to os.Stderr and returns a Unix exit code indicating an error.

type Search struct{ Meta }

Search is a cli.Command implementation that takes an argument and looks if any available package matches that argument.

func (*Search) Help

func (s *Search) Help() string

func (*Search) Run

func (s *Search) Run(args []string) int

func (*Search) Synopsis

func (s *Search) Synopsis() string

type Show

type Show struct{ Meta }

func (*Show) Help

func (s *Show) Help() string

func (*Show) Run

func (s *Show) Run(args []string) int

func (*Show) Synopsis

func (s *Show) Synopsis() string

Jump to

Keyboard shortcuts

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