Documentation
¶
Overview ¶
Package cli implements lumos' command-line interface: argument parsing, the interactive theme/variant picker, and the install/update/enable flows.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Version = "dev"
Version is overridden at build time via -ldflags. When unset (e.g. a plain `go install`), Version() falls back to the module version from the build info, so `go install ...@v0.0.1-alpha.1` still reports the right version.
Functions ¶
func ParseSelection ¶
ParseSelection validates a 1-based menu choice against n options and returns a 0-based index. An empty string means "cancel" and is an error.
func RenderThemeList ¶
RenderThemeList formats the picker list, marking the current theme.
Types ¶
type App ¶
type App struct {
Paths config.Paths
Runner apply.Runner
Cloner source.Cloner
In io.Reader
Out io.Writer
Err io.Writer
}
App carries the runtime dependencies, injectable for testing.
Click to show internal directories.
Click to hide internal directories.