Documentation
¶
Index ¶
- func New(_ sdk.Service) sdk.Plugin
- type Plugin
- func (p *Plugin) Activate() tea.Cmd
- func (p *Plugin) Configure(opts map[string]interface{}) error
- func (p *Plugin) HandleContextChanged(ev sdk.ContextChangedEvent) tea.Cmd
- func (p *Plugin) Init(deps *sdk.PluginDeps) tea.Cmd
- func (p *Plugin) Ready() bool
- func (p *Plugin) SetMembers(members []string)
- func (p *Plugin) SetProjectDir(dir string)
- func (p *Plugin) Stack() *sdk.Stack
- func (p *Plugin) Update(msg tea.Msg) (sdk.Plugin, tea.Cmd)
- func (p *Plugin) View(width, height int) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Plugin ¶
type Plugin struct {
sdk.PluginBase
// contains filtered or unexported fields
}
Plugin implements the context dashboard — shows Project, Chdir, Workspace.
func (*Plugin) HandleContextChanged ¶ added in v1.10.0
func (p *Plugin) HandleContextChanged(ev sdk.ContextChangedEvent) tea.Cmd
HandleContextChanged implements sdk.ContextChangedHandler. The context plugin mirrors the active chdir + workspace so its form reflects the current state.
func (*Plugin) Init ¶
func (p *Plugin) Init(deps *sdk.PluginDeps) tea.Cmd
Init wires the plugin to its shared dependencies. The boot-time workspace is read from deps.Context(); subsequent changes arrive via ContextChangedEvent.
func (*Plugin) SetMembers ¶ added in v1.5.0
SetMembers provides the list of chdir members.
func (*Plugin) SetProjectDir ¶ added in v1.5.0
SetProjectDir sets the project directory for display.
Click to show internal directories.
Click to hide internal directories.