howmuchleft v0.14.1 /internal/cli
On this page

Defines the strictcli application with subcommands for version, profile management, demo animation, color preview, and config display.

#internal/cli

#internal/cli

#SetVersion

Go go
func SetVersion(v string)

SetVersion sets the application version string.

#RunStatuslineDirect

Go go
func RunStatuslineDirect() bool

RunStatuslineDirect checks if stdin is piped and runs the statusline. Returns true if it handled the invocation (caller should exit), false otherwise.

#NewApp

Go go
func NewApp() *strictcli.App

NewApp builds and returns the strictcli application.

Every command is classified strictcli.EffectMutating, including the ones that only print. That is not a rubber stamp: every handler opens with runMigrations(), which converts a legacy ~/.config/howmuchleft.json to TOML (renaming the original to .bak) and writes any missing settings into ~/.config/howmuchleft/config.toml. Those are user-visible filesystem mutations, so no command here can honestly claim read_only. classification_test.go pins the table.

Search