prompter

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: May 4, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BackActionName      = "back"
	WorkflowsActionName = "workflows..."
	CancelActionName    = "cancel"

	CheckMarkEmoji = "\U00002705"
	CrossMarkEmoji = "\U0000274C"
)
View Source
const (
	Identifier string = "prompter"
)

Variables

View Source
var CreateFakePrompter = func() *fakePrompterImpl {
	return &fakePrompterImpl{}
}

Functions

func GenerateKubernetesRunInstructionMessage

func GenerateKubernetesRunInstructionMessage(s shell.Shell, id string, instType string, title string) string

func GenerateRunInstructionMessage

func GenerateRunInstructionMessage(id string, instType string, title string) string

func New

func New() *prompterImpl

Types

type Prompter

type Prompter interface {
	PromptConfigContext(cfgContexts []*config.Context) (*config.Context, error)
	PromptCommandFolderItemSelection(folderItems []*models.CommandFolderItemInfo) (*models.CommandFolderItemInfo, error)
	PromptInstructionActions(folderItem string, actions []*models.Action) (*models.Action, error)
	PromptInstructionWorkflows(folderItem string, workflows []*models.Workflow) (*models.Workflow, error)
}

Jump to

Keyboard shortcuts

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