app

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2026 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PluginViewAdapter

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

PluginViewAdapter adapts a plugin view to the s9s view interface

func (*PluginViewAdapter) Hints

func (p *PluginViewAdapter) Hints() []string

func (*PluginViewAdapter) Init

func (p *PluginViewAdapter) Init(ctx context.Context) error

func (*PluginViewAdapter) Name

func (p *PluginViewAdapter) Name() string

func (*PluginViewAdapter) OnFocus

func (p *PluginViewAdapter) OnFocus() error

func (*PluginViewAdapter) OnKey

func (p *PluginViewAdapter) OnKey(event *tcell.EventKey) *tcell.EventKey

func (*PluginViewAdapter) OnLoseFocus

func (p *PluginViewAdapter) OnLoseFocus() error

func (*PluginViewAdapter) Refresh

func (p *PluginViewAdapter) Refresh() error

func (*PluginViewAdapter) Render

func (p *PluginViewAdapter) Render() tview.Primitive

func (*PluginViewAdapter) Stop

func (p *PluginViewAdapter) Stop() error

func (*PluginViewAdapter) Title

func (p *PluginViewAdapter) Title() string

type S9s

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

S9s represents the main application

func New

func New(ctx context.Context, cfg *config.Config) (*S9s, error)

New creates a new S9s application instance

func (*S9s) HideModal

func (s *S9s) HideModal(name string)

HideModal removes a modal dialog

func (*S9s) Run

func (s *S9s) Run() error

Run starts the application

func (*S9s) ShowModal

func (s *S9s) ShowModal(name string, modal tview.Primitive)

ShowModal displays a modal dialog over the main interface

func (*S9s) Stop

func (s *S9s) Stop() error

Stop gracefully stops the application

Jump to

Keyboard shortcuts

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