tui

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2022 License: MIT Imports: 18 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 Repo added in v0.2.0

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

func (*Repo) GetCommits added in v0.2.0

func (r *Repo) GetCommits(limit int) (gitypes.Commits, error)

func (*Repo) GetReadme added in v0.2.0

func (r *Repo) GetReadme() string

func (*Repo) GetReference added in v0.2.0

func (r *Repo) GetReference() *plumbing.Reference

func (*Repo) Name added in v0.2.0

func (r *Repo) Name() string

func (*Repo) Repository added in v0.2.0

func (r *Repo) Repository() *git.Repository

func (*Repo) SetReference added in v0.2.0

func (r *Repo) SetReference(ref *plumbing.Reference) error

func (*Repo) Tree added in v0.2.0

func (r *Repo) Tree(path string) (*object.Tree, error)

type SessionConfig

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

Directories

Path Synopsis
bubbles
git

Jump to

Keyboard shortcuts

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