prompt

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2026 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsInteractive

func IsInteractive() bool

IsInteractive returns true when stdin is a terminal. Commands should skip confirmation prompts when this is false, enabling scripted and agentic usage without --force.

func String

func String(label, defaultVal string) string

String prompts the user for text input. If defaultVal is non-empty, it is shown in brackets and returned when the user presses Enter without typing.

Types

This section is empty.

Jump to

Keyboard shortcuts

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