command

package
v0.0.0-...-abce128 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2025 License: MIT Imports: 27 Imported by: 0

Documentation

Overview

Package editor provides command editing functionality

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrCommandNotFound is returned when a command with the given ID is not found
	ErrCommandNotFound = errors.New("command not found with ID")
)

Error definitions

Functions

This section is empty.

Types

type EditorCancelledMsg

type EditorCancelledMsg struct{}

type EditorMaker

type EditorMaker struct {
	App          *services.AppService
	Styles       *styles.Styles
	EditorKeyMap *keys.EditorKeyMap
	// contains filtered or unexported fields
}

func (*EditorMaker) Make

func (mm *EditorMaker) Make(id resource.ID, width, height int) (structure.ChildModel, error)

Make creates a new command editor model based on the command ID

type ErrClipboardCopyFailed

type ErrClipboardCopyFailed struct {
	Err error
}

ErrClipboardCopyFailed is returned when copying to clipboard fails

func (*ErrClipboardCopyFailed) Error

func (e *ErrClipboardCopyFailed) Error() string

type ErrCommandLoadingFailure

type ErrCommandLoadingFailure struct {
	Err       error
	CommandID resource.ID
}

func (*ErrCommandLoadingFailure) Error

func (e *ErrCommandLoadingFailure) Error() string

type ErrComposeCommand

type ErrComposeCommand struct {
	Err error
}

ErrComposeCommand represents an error when composing a command fails

func (*ErrComposeCommand) Error

func (e *ErrComposeCommand) Error() string

type ErrNoCommandsSelected

type ErrNoCommandsSelected struct{}

ErrNoCommandsSelected is returned when no commands are selected for an operation

func (*ErrNoCommandsSelected) Error

func (*ErrNoCommandsSelected) Error() string

type ErrRestoreCommand

type ErrRestoreCommand struct {
	Err error
}

ErrRestoreCommand represents an error when restoring a command fails

func (*ErrRestoreCommand) Error

func (e *ErrRestoreCommand) Error() string

type ErrSelectionMismatch

type ErrSelectionMismatch struct{}

ErrSelectionMismatch is returned when selection is not compatible with the operation

func (*ErrSelectionMismatch) Error

func (*ErrSelectionMismatch) Error() string

type ListMaker

type ListMaker struct {
	App                     services.AppServiceInterface
	TableCustomActionKeyMap *keys.TableCustomActionKeyMap
	FilterKeyMap            *pkgTabs.FilterKeyMap
	NavigationKeyMap        *table.Navigation
	SortKeyMap              *sort.KeyMap
	ActionKeyMap            *table.Action
	EditorsCache            table.EditorsCacheInterface
	Styles                  *styles.Styles
	Spinner                 *spinner.Model
}

func (*ListMaker) Make

func (mm *ListMaker) Make(_ resource.ID, width, height int) (structure.ChildModel, error)

type SearchMaker

type SearchMaker struct {
	App     *services.AppService
	Styles  *styles.Styles
	Spinner *spinner.Model
}

func (*SearchMaker) Make

func (mm *SearchMaker) Make(_ resource.ID, width, height int) (structure.ChildModel, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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