callback

package
v0.30.10 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Name

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

Name requests name information.

func NewName

func NewName(prompt string, defaultName string) *Name

func (*Name) DefaultName

func (n *Name) DefaultName() string

func (*Name) Name

func (n *Name) Name() string

func (*Name) Prompt

func (n *Name) Prompt() string

func (*Name) SetName

func (n *Name) SetName(name string)

type NameHandler added in v0.30.7

type NameHandler struct {
	Name string
}

NameHandler responds to Name callbacks with give name.

func (NameHandler) Handle added in v0.30.7

func (h NameHandler) Handle(
	c any,
	greedy bool,
	composer miruken.Handler,
) miruken.HandleResult

type Password

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

Password requests password information.

func NewPassword

func NewPassword(prompt string, display bool) *Password

func (*Password) ClearPassword

func (p *Password) ClearPassword()

func (*Password) Display

func (p *Password) Display() bool

func (*Password) Password

func (p *Password) Password() []byte

func (*Password) Prompt

func (p *Password) Prompt() string

func (*Password) SetPassword

func (p *Password) SetPassword(password []byte)

Jump to

Keyboard shortcuts

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