ui

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package ui provides user interface utilities for terminal interactions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MaskToken

func MaskToken(token string) string

MaskToken masks a token for security, showing only the token prefix for known types.

func ReadInput

func ReadInput(prompt string) (string, error)

ReadInput reads regular input from stdin (non-sensitive).

func ReadSecureInput

func ReadSecureInput(prompt string) (string, error)

ReadSecureInput reads sensitive input (like tokens) from stdin. It uses secure password input for terminals and handles non-terminal input gracefully.

func ReadYesNo

func ReadYesNo(prompt string) (bool, error)

ReadYesNo reads a yes/no response from the user. Returns true for "y" or "Y", false for anything else.

Types

This section is empty.

Jump to

Keyboard shortcuts

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