Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Heading ¶
func Heading(text string, opts StyleOptions) string
Heading returns a styled heading string respecting the provided options.
func RenderBinaryInfo ¶
func RenderBinaryInfo(w io.Writer, info *BinaryInfo, opts StyleOptions)
RenderBinaryInfo writes a friendly summary panel about the binary.
Types ¶
type BinaryInfo ¶
type BinaryInfo struct {
Name string
Version string
OverrideHint string
ConfigPath string
WatcherEnabled bool
AutoApply bool
Tips []string
}
BinaryInfo represents high-level metadata about the CLI binary.
type StyleOptions ¶
type StyleOptions struct {
EnableColor bool
}
StyleOptions control how BinaryInfo is rendered.
func StyleForWriter ¶
func StyleForWriter(w io.Writer) StyleOptions
StyleForWriter infers reasonable style defaults for the supplied writer.
Click to show internal directories.
Click to hide internal directories.