tui

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SessionHandler

func SessionHandler(cfg *config.Config) func(ssh.Session) (tea.Model, []tea.ProgramOption)

Types

type Bubble

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

func NewBubble

func NewBubble(cfg *config.Config, sCfg *SessionConfig) *Bubble

func (*Bubble) Init

func (b *Bubble) Init() tea.Cmd

func (*Bubble) Update

func (b *Bubble) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (Bubble) View

func (b Bubble) View() string
type MenuEntry struct {
	Name string `json:"name"`
	Note string `json:"note"`
	Repo string `json:"repo"`
	// contains filtered or unexported fields
}

type SessionConfig

type SessionConfig struct {
	Width       int
	Height      int
	InitialRepo string
	Session     ssh.Session
}

Directories

Path Synopsis
bubbles

Jump to

Keyboard shortcuts

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