commands

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

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

Manager handles command operations

func New

func New() (*Manager, error)

New creates a new command manager

func (*Manager) ApplyCommand

func (m *Manager) ApplyCommand(name string, opts *types.ProcessingOptions) error

ApplyCommand applies a command to processing options

func (*Manager) DeleteCommand

func (m *Manager) DeleteCommand(name string) error

DeleteCommand deletes a user command

func (*Manager) GenerateCommandTemplate

func (m *Manager) GenerateCommandTemplate(name string) *types.Command

GenerateCommandTemplate generates a command template

func (*Manager) GetBuiltinCommands

func (m *Manager) GetBuiltinCommands() map[string]*types.Command

GetBuiltinCommands returns all built-in commands

func (*Manager) GetCommand

func (m *Manager) GetCommand(name string) (*types.Command, error)

GetCommand retrieves a command by name

func (*Manager) GetUserCommands

func (m *Manager) GetUserCommands() map[string]*types.Command

GetUserCommands returns all user commands

func (*Manager) IsBuiltin

func (m *Manager) IsBuiltin(name string) bool

IsBuiltin checks if a command is built-in

func (*Manager) SaveCommand

func (m *Manager) SaveCommand(cmd *types.Command) error

SaveCommand saves a user command

func (*Manager) SubstituteVariables

func (m *Manager) SubstituteVariables(cmd *types.Command, variables map[string]string)

SubstituteVariables substitutes variables in a command

Jump to

Keyboard shortcuts

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