Documentation
¶
Overview ¶
Package cli implements headless mode and command-line parsing (contract C10 v1).
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Version = "dev"
Version is set via -ldflags "-X github.com/thegriglat/platui/internal/cli.Version=…".
Functions ¶
Types ¶
type Env ¶
type Env struct {
Stdout, Stderr io.Writer
Getenv func(string) string
Getwd func() (string, error)
Stdin io.Reader // answers to confirmation prompts
IsTTY func() bool // stdin is a terminal
Yes bool // global --yes flag (filled in by parsing)
Build func(cfg *config.Config, repoDir string) (*app.App, error)
RunTUI func(a *app.App, cfg *config.Config, start StartAt) error
}
Env holds the CLI's external dependencies.
Click to show internal directories.
Click to hide internal directories.