banner

package
v0.2.17 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2026 License: MPL-2.0 Imports: 3 Imported by: 0

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