framework

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Argument

type Argument struct {
	Name        string
	Description string
}

type Command

type Command interface {
	Definition() Definition
	Run(ctx context.Context, execution *Execution) error
}

type Definition

type Definition struct {
	Name        string
	Description string
	Arguments   []Argument
	Options     []Option
}

type Execution

type Execution struct {
	*go_console.Script

	Question *question.Helper
}

func (*Execution) Ask

func (e *Execution) Ask(prompt string, defaultAnswer string) (string, error)

func (*Execution) AskPassword

func (e *Execution) AskPassword(prompt string) (string, error)

func (*Execution) AskWithChoices

func (e *Execution) AskWithChoices(prompt string, choices []string) (int, error)

func (*Execution) Confirm

func (e *Execution) Confirm(prompt string) bool

func (*Execution) PrintTable

func (e *Execution) PrintTable(headers []string, rows [][]string) error

type Option

type Option struct {
	Name string
}

Jump to

Keyboard shortcuts

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