ioutils

package
v1.202449.18 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: Apache-2.0 Imports: 6 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

func AspectCacheDir

func AspectCacheDir() (string, error)

func UserCacheDir

func UserCacheDir() (string, error)

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