command

package
v0.0.0-...-e86b535 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddCommand

type AddCommand struct {
}

func (AddCommand) Name

func (c AddCommand) Name() string

func (AddCommand) Run

func (c AddCommand) Run(ctx *app.Context, args ...string) (string, string)

func (AddCommand) Usage

func (c AddCommand) Usage() string

type AddSubtaskCommand

type AddSubtaskCommand struct {
}

func (AddSubtaskCommand) Name

func (c AddSubtaskCommand) Name() string

func (AddSubtaskCommand) Run

func (c AddSubtaskCommand) Run(ctx *app.Context, args ...string) (string, string)

func (AddSubtaskCommand) Usage

func (c AddSubtaskCommand) Usage() string

type Command

type Command interface {
	Run(*app.Context, ...string) (string, string)
	Usage() string
	Name() string
}

type DeleteCommand

type DeleteCommand struct {
}

func (DeleteCommand) Name

func (c DeleteCommand) Name() string

func (DeleteCommand) Run

func (c DeleteCommand) Run(ctx *app.Context, args ...string) (string, string)

func (DeleteCommand) Usage

func (c DeleteCommand) Usage() string

type HelpCommand

type HelpCommand struct {
	Commands *map[string]Command
}

func (HelpCommand) Name

func (c HelpCommand) Name() string

func (HelpCommand) Run

func (c HelpCommand) Run(ctx *app.Context, args ...string) (string, string)

func (HelpCommand) Usage

func (c HelpCommand) Usage() string

type Model

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

func New

func New(ctx *app.Context) Model

func (*Model) CallCommand

func (m *Model) CallCommand() tea.Cmd

func (*Model) Focus

func (m *Model) Focus() tea.Cmd

func (*Model) Focused

func (m *Model) Focused() bool

func (Model) Init

func (m Model) Init() tea.Cmd

func (*Model) RegisterCommand

func (m *Model) RegisterCommand(cmd Command)

func (Model) Update

func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (Model) View

func (m Model) View() string

Jump to

Keyboard shortcuts

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