app

package
v1.0.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: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppEnv

type AppEnv struct {
	Verbose  bool
	Force    bool
	List     bool
	PageSize int
	Hook     string
	Ignore   []string

	In     io.Reader
	Out    io.Writer
	ErrOut io.Writer

	Runner        CommandRunner
	Selector      SelectorFunc
	TerminalCheck TerminalChecker
	Logger        *Logger
}

func (*AppEnv) Run

func (app *AppEnv) Run(ctx context.Context) error

type CommandRunner added in v1.0.0

type CommandRunner interface {
	Output(ctx context.Context, env []string, name string, args ...string) ([]byte, error)
	CombinedOutput(ctx context.Context, env []string, name string, args ...string) ([]byte, error)
}

type Logger added in v1.0.0

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

func NewLogger added in v1.0.0

func NewLogger(verbose bool, out io.Writer) *Logger

func (*Logger) Debugf added in v1.0.0

func (l *Logger) Debugf(format string, args ...any)

type SelectorFunc added in v1.0.0

type SelectorFunc func(context.Context, []module.Module, int, io.Reader, io.Writer) ([]module.Module, error)

type TerminalChecker added in v1.0.0

type TerminalChecker func(io.Reader, io.Writer) bool

Jump to

Keyboard shortcuts

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