Documentation ¶
Index ¶
- type Command
- type Ifaces
- type QueryOptions
- type ScriptPlugin
- type Service
- func (s *Service) LoadScript(ctx context.Context, filename string) (*ScriptPlugin, error)
- func (s *Service) LookupCommand(name string) *Command
- func (s *Service) LookupKeyBinding(key string) (string, *Command)
- func (s *Service) RebindKeyBinding(keyBinding string, newKey string) error
- func (s *Service) RelatedItemOfItem(ctx context.Context, rs *models.ResultSet, index int) ([]relitems.RelatedItem, error)
- func (s *Service) RunAdHocScript(ctx context.Context, filename string) chan error
- func (s *Service) SetIFaces(ifaces Ifaces)
- func (s *Service) SetLookupPaths(fs []fs.FS)
- func (s *Service) StartAdHocScript(ctx context.Context, filename string, errChan chan error) error
- func (s *Service) UnbindKey(key string)
- type ServiceOption
- type SessionService
- type UIService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Ifaces ¶
type Ifaces struct { UI UIService Session SessionService }
type QueryOptions ¶
type ScriptPlugin ¶
type ScriptPlugin struct {
// contains filtered or unexported fields
}
func (*ScriptPlugin) Name ¶
func (sp *ScriptPlugin) Name() string
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func New ¶
func New(opts ...ServiceOption) *Service
func (*Service) LoadScript ¶
func (*Service) LookupCommand ¶
LookupCommand looks up a command defined by a script. TODO: Command should probably accept/return a chan error to indicate that this will run in a separate goroutine
func (*Service) LookupKeyBinding ¶
func (*Service) RebindKeyBinding ¶
func (*Service) RelatedItemOfItem ¶ added in v0.4.0
func (*Service) RunAdHocScript ¶
func (*Service) SetLookupPaths ¶
func (*Service) StartAdHocScript ¶
type ServiceOption ¶
type ServiceOption func(srv *Service)
func WithFS ¶
func WithFS(fs ...fs.FS) ServiceOption
type SessionService ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.