terminal

package
v0.0.0-...-a8ed2b5 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServiceSelector

func NewServiceSelector() serviceSelector

NewServiceSelector returns a function that when executed with a slice of fastly.Service draws a widget to allow users to select a single fastly.Service

Types

type TextGatherer

type TextGatherer func(label string) (string, error)

TextGatherer displays a prompt and harvests textual input

func GetInput

func GetInput() TextGatherer

GetInput returns a function to return some user entered text or an error

func GetInputSecret

func GetInputSecret() TextGatherer

GetInputSecret returns a function to return some user entered text or an error. The user text is not echoed to the terminal.

Jump to

Keyboard shortcuts

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