promptuiproxy

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package promptuiproxy is a package that provides a promptui proxy for the app.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PromptInstance

type PromptInstance struct {
	FieldPrompt *promptui.Prompt
}

PromptInstance is a struct that implements PromptInstanceInterface.

func (*PromptInstance) Run

func (p *PromptInstance) Run() (string, error)

Run is a proxy for promptui.Prompt.Run.

func (*PromptInstance) SetLabel

func (p *PromptInstance) SetLabel(label string)

SetLabel is a proxy for promptui.Prompt.Label.

type PromptInstanceInterface

type PromptInstanceInterface interface {
	Run() (string, error)
	SetLabel(label string)
}

PromptInstanceInterface is an interface for promptui.Prompt.

type Promptui

type Promptui interface {
	NewPrompt() PromptInstanceInterface
}

Promptui is an interface for promptui.

func New

func New() Promptui

New is a constructor for PromptuiProxy.

type PromptuiProxy

type PromptuiProxy struct{}

PromptuiProxy is a struct that implements Promptui.

func (*PromptuiProxy) NewPrompt

NewPrompt is a proxy for getting promptui.Prompt struct.

Jump to

Keyboard shortcuts

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