ui

package
v0.0.0-...-74156fd Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pane

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

func (Pane) GetContentSize

func (p Pane) GetContentSize() (w int, h int)

func (Pane) Render

func (p Pane) Render(s string) string

func (*Pane) SetSize

func (p *Pane) SetSize(w, h int)

type Result

type Result struct {
	Repo         *github.Repository
	Entry        *github.TreeEntry
	Branch, Path string
	Canceled     bool
	Error        error
}

type Window

type Window struct {
	Result Result
	// contains filtered or unexported fields
}

func NewWindow

func NewWindow(client *github.Client, owner string) *Window

func (Window) Init

func (w Window) Init() tea.Cmd

func (*Window) Run

func (w *Window) Run() (Result, error)

func (Window) Update

func (w Window) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (Window) View

func (w Window) View() string

Jump to

Keyboard shortcuts

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