cli

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2026 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CommandUsage

func CommandUsage(name, command string) string

func NeedsService

func NeedsService(args []string) bool

func Run

func Run(ctx context.Context, opts RunOptions) error

func Usage

func Usage(name string) string

Types

type App

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

func New

func New(service Service, opts Options) *App

func (*App) Run

func (a *App) Run(ctx context.Context, args []string) error

type GlobalOptions

type GlobalOptions struct {
	EnvPath     string
	EnvExplicit bool
	JSON        bool
}

func ParseGlobals

func ParseGlobals(args []string) (GlobalOptions, []string, error)

type Options

type Options struct {
	Name    string
	JSON    bool
	NoStyle bool
	In      io.Reader
	Out     io.Writer
	ErrOut  io.Writer
}

type RunOptions

type RunOptions struct {
	Args       []string
	BinaryName string
	In         io.Reader
	Out        io.Writer
	ErrOut     io.Writer
	WorkDir    string
}

Jump to

Keyboard shortcuts

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