terminal

package
v0.0.0-...-768a7c8 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2023 License: BSD-2-Clause Imports: 3 Imported by: 0

Documentation

Overview

Package terminal provides utilities for terminal-related tasks.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AskConfirmation

func AskConfirmation() bool

AskConfirmation returns true if it's "y" or "Y", otherwise false.

func AskCredentials

func AskCredentials() (string, error)

AskCredentials reads a password from the terminal without echoing it, returns the entered password as a string.

func AskValue

func AskValue() string

AskValue reads from stdin and returns it as a string.

Types

This section is empty.

Jump to

Keyboard shortcuts

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