cmd

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: May 9, 2026 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute()

Types

type FormProvider added in v0.0.12

type FormProvider interface {
	Input(title string, validate func(string) error) (string, error)
	InputPassword(title string) (string, error)
	Select(title string, options []string) (string, error)
	Confirm(title, description string) (bool, error)
}

type RealFormProvider added in v0.0.12

type RealFormProvider struct{}

func (RealFormProvider) Confirm added in v0.0.12

func (RealFormProvider) Confirm(title, description string) (bool, error)

func (RealFormProvider) Input added in v0.0.12

func (RealFormProvider) Input(title string, validate func(string) error) (string, error)

func (RealFormProvider) InputPassword added in v0.0.12

func (RealFormProvider) InputPassword(title string) (string, error)

func (RealFormProvider) Select added in v0.0.12

func (RealFormProvider) Select(title string, options []string) (string, error)

Jump to

Keyboard shortcuts

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