prompt

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2024 License: MulanPSL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const StringPromptDelimiterChar = "="

Variables

This section is empty.

Functions

This section is empty.

Types

type Prompt

type Prompt interface {
	Format(params utils.ParamsManager) (string, error)
}

type StringPrompt

type StringPrompt struct {
	// contains filtered or unexported fields
}

func NewStringPrompt

func NewStringPrompt(tmp string) (*StringPrompt, error)

func (*StringPrompt) Format

func (t *StringPrompt) Format(params utils.ParamsManager) (string, error)

func (*StringPrompt) Init

func (t *StringPrompt) Init(tmp string) error

type TemplatePrompt

type TemplatePrompt struct {
	// contains filtered or unexported fields
}

func NewTemplatePrompt

func NewTemplatePrompt(tmp string) (*TemplatePrompt, error)

func (*TemplatePrompt) Format

func (t *TemplatePrompt) Format(params utils.ParamsManager) (string, error)

func (*TemplatePrompt) Init

func (t *TemplatePrompt) Init(tmp string) error

Jump to

Keyboard shortcuts

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