view

package
v0.2.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	Local = "local"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Status

type Status struct {
	*tview.TextView
	// contains filtered or unexported fields
}

func NewStatus

func NewStatus(app *tview.Application) *Status

NewStatus returns the status bar component. We display the current remote, path and action in the status bar.

func (*Status) GetAction

func (s *Status) GetAction() string

func (*Status) GetSelectedPath

func (s *Status) GetSelectedPath() []string

func (*Status) GetSelectedRemote

func (s *Status) GetSelectedRemote() string

func (*Status) SetLocation

func (s *Status) SetLocation(currentRemote string, currentPath []string)

func (*Status) SetSelect

func (s *Status) SetSelect(selectedRemote string, selectedPath []string, action string)

type View

type View struct {
	*tview.Table
	// contains filtered or unexported fields
}

func NewView

func NewView(app *tview.Application, status *Status, remotes []string, userDir string) *View

func (*View) SetView

func (v *View) SetView(otherView *View)

Jump to

Keyboard shortcuts

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