myterm

package
v0.0.0-...-f6a5026 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2023 License: BSD-2-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoTerm = errors.New("Not a terminal.")

Functions

This section is empty.

Types

type Password

type Password string

type Question

type Question struct {
	Prompt string
	Var    any
}

type Terminal

type Terminal interface {
	ReadLine(string) (string, error)
	ReadPass(string) (string, error)
	YesNo(string) bool
}

func New

func New() Terminal

func SetTerm

func SetTerm(t Terminal) Terminal

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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