ioutils

package
v1.508.0 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2023 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultStreams = Streams{
	Stdin:  os.Stdin,
	Stdout: os.Stdout,
	Stderr: os.Stderr,
}

Functions

This section is empty.

Types

type PromptRunner

type PromptRunner interface {
	Run(prompt promptui.Prompt) (string, error)
}

PromptRunner is the interface that wraps the promptui.Prompt and makes a call to it from the aspect CLI Core.

func NewPromptRunner

func NewPromptRunner() PromptRunner

NewPromptRunner creates a new default prompt runner.

type Streams

type Streams struct {
	Stdin  io.Reader
	Stdout io.Writer
	Stderr io.Writer
}

Jump to

Keyboard shortcuts

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