Documentation
¶
Index ¶
Constants ¶
View Source
const ( // Maintenance command names are public and shared by cli flags/validation/help and mod/maintenance rendering. CommandInspect = "inspect" CommandPrune = "prune" CommandVacuum = "vacuum" CommandRebuildCache = "rebuild-cache" )
Variables ¶
This section is empty.
Functions ¶
func RenderError ¶
RenderError renders a CLI error: JSON envelope with --json, colored stderr otherwise.
Types ¶
type KeygenObj ¶
type KeygenObj struct {
MakeYggKey bool
Force bool // overwrite existing key file
JsonOutput bool // machine-readable output
}
KeygenObj is the config-less ygg key generation command. cli only recognizes and validates it; main generates, writes, and renders the result.
type MaintenanceObj ¶
type MaintenanceObj struct {
Inspect bool
Prune bool
Vacuum bool
RebuildCache bool
Force bool // apply --prune; without it prune is dry-run
JsonOutput bool // machine-readable output
}
MaintenanceObj holds the requested CLI maintenance command. cli only recognizes and validates it; main opens storage, executes work, and renders output.
func (MaintenanceObj) Requested ¶
func (obj MaintenanceObj) Requested() bool
Requested reports whether any maintenance command was requested.
Click to show internal directories.
Click to hide internal directories.