termstatic

package
v2.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 23, 2026 License: MIT Imports: 3 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package termstatic prints framework-owned, out-only text: the app banner and the version line.

Out-only means: never reads input, never starts spinners, bars, or prompts, and always renders through style so NO_COLOR, dumb terminals, pipes, and CI look right. Static output finishes fast and exits cleanly on Ctrl+C because there is nothing to interrupt: help, version, and completion short-circuit in cobra before any renderer starts (see package app), and Banner writes synchronously.

App-specific result printing (lists, status) lives in package output and follows the same out-only rules with --output formats.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Banner(w io.Writer, name, version string, colorEnabled bool) error

Banner writes the app banner line: the name painted green when color is true, followed by the plain version. It writes synchronously and returns the first write error, if any.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL