types

package
v0.0.0-...-6a5c335 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProvidePS

func ProvidePS(schemas []Schema) ([]string, []string, map[string]TfPrompt, map[string]TfSelect)

Types

type Schema

type Schema struct {
	Type      string
	Field     string
	Doc       string
	Ex        string
	Validator func(string) error
	Items     []string
}

type TfPrompt

type TfPrompt struct {
	Label  string
	Prompt promptui.Prompt
}

TfPrompt is a custom prompt

func (TfPrompt) Run

func (p TfPrompt) Run() (string, error)

Run runs the custom TfPrompt

type TfSelect

type TfSelect struct {
	Label  string
	Select promptui.Select
}

TfSelect is a custom select

func (TfSelect) Run

func (s TfSelect) Run() (string, error)

Run runs the custom TfSelect

Jump to

Keyboard shortcuts

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