operatorio

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InputOptions

type InputOptions struct {
	Default    string
	HasDefault bool
	Required   bool
	Secret     bool
}

type Interface

type Interface interface {
	Message(level, message, stream string) error
	Confirm(ctx context.Context, message string, defaultValue *bool) (bool, error)
	Input(ctx context.Context, message string, opts InputOptions) (string, error)
}

func Default

func Default() Interface

type Terminal

type Terminal struct {
	Stdin          io.Reader
	Stdout         io.Writer
	Stderr         io.Writer
	NonInteractive bool
	// contains filtered or unexported fields
}

func (*Terminal) Confirm

func (t *Terminal) Confirm(ctx context.Context, message string, defaultValue *bool) (bool, error)

func (*Terminal) Input

func (t *Terminal) Input(ctx context.Context, message string, opts InputOptions) (string, error)

func (*Terminal) Message

func (t *Terminal) Message(level, message, stream string) error

Jump to

Keyboard shortcuts

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