Documentation
¶
Overview ¶
Package cli is a stdlib flag-based runner for chalk-based, task-oriented CLIs. It wires Reporter construction, the standard -I/-O/-o/-extension I/O flags, and a checkpoint cache (-cache) on top of github.com/fogfish/stream/spool.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Commit ¶
Commit persists val under key in the -cache directory. It is a no-op if -cache was not set. Init must have been called first.
func Init ¶
Init parses flags, builds a Reporter via chalk.New and installs it as chalk.Default(). It also wires the -cache checkpoint cache as checkpoint.Default(), used by Recover/Commit. Call this directly if you only need the reporter (e.g. you're not using Start).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.