util

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2026 License: BSD-3-Clause, MIT Imports: 2 Imported by: 0

Documentation

Overview

Package util holds small cross-cutting helpers shared by the command layer and the prompt/auth subpackages.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsTTY

func IsTTY() bool

IsTTY reports whether stdin is connected to a terminal. Used to decide whether to run interactive prompts vs. fail with an actionable error in non-interactive contexts (CI, pipes).

term.IsTerminal (isatty) is used instead of checking ModeCharDevice: /dev/null is a character device but not a terminal, and prompting against it crashes bubbletea with "could not open a new TTY".

Types

This section is empty.

Jump to

Keyboard shortcuts

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