banner

package
v0.2.58 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2026 License: MPL-2.0 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 banner holds the txco logo + small TTY helpers used by every subcommand's help/usage screen. Lives in its own package so both chassis/cli and chassis/cli/auth can import it without a cycle (chassis/cli imports chassis/cli/auth for dispatch).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsTTY

func IsTTY(w io.Writer) bool

IsTTY reports whether w wraps a character device (i.e. an interactive terminal). Returns false for pipes, files, and any non-*os.File writer. No external dep required — ModeCharDevice on the FileInfo is the same check mattn/go-isatty performs on darwin/linux.

func PrintLogo(w io.Writer)

PrintLogo writes the txco banner to w. The three dots colorize (cyan/magenta/yellow) when w is a terminal; piped output stays plain so it doesn't leak escape codes into log files or pagers.

Types

This section is empty.

Jump to

Keyboard shortcuts

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