plugins

package
v0.0.0-...-692316b Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommandInfo

type CommandInfo struct {
	PluginID string
	ID       string // full ID: plugin:<pluginID>:<cmdID>
	Title    string
	Hint     string
}

type Host

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

func New

func New(svc service.TaskService, dir string) *Host

func (*Host) Commands

func (h *Host) Commands() []CommandInfo

func (*Host) DeletePlugin

func (h *Host) DeletePlugin(id string) error

func (*Host) Enabled

func (h *Host) Enabled() bool

func (*Host) LastError

func (h *Host) LastError() error

func (*Host) LoadAll

func (h *Host) LoadAll() error

func (*Host) Plugins

func (h *Host) Plugins() []PluginInfo

func (*Host) RunCommand

func (h *Host) RunCommand(ctx context.Context, fullID string) error

func (*Host) SetNotifyFunc

func (h *Host) SetNotifyFunc(f func(string, bool))

func (*Host) Views

func (h *Host) Views() []ViewInfo

func (*Host) Watch

func (h *Host) Watch(ctx context.Context, onChange func()) error

type PluginInfo

type PluginInfo struct {
	ID          string
	Name        string
	Description string
	Author      string
	Version     string
	Path        string
}

type ViewInfo

type ViewInfo struct {
	PluginID string
	ID       string // full ID: plugin:<pluginID>:<viewID>
	Title    string
	Filter   core.Filter
}

Jump to

Keyboard shortcuts

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