Documentation
¶
Index ¶
- Constants
- func BuildSSHCommand(s domain.Server) string
- func DefaultStatusText() string
- func NewHintBar() *tview.TextView
- func NewStatusBar() *tview.TextView
- type App
- type AppHeader
- type SearchBar
- type ServerDetails
- type ServerForm
- type ServerFormData
- type ServerFormMode
- type ServerList
- type SortMode
Constants ¶
View Source
const ( AppName = "lazyssh" RepoURL = "github.com/adembc/lazyssh" Banner = `` /* 687-byte string literal not displayed */ )
Variables ¶
This section is empty.
Functions ¶
func BuildSSHCommand ¶
BuildSSHCommand constructs a ready-to-run ssh command for the given server. Format: ssh [user@]host [-p PORT if not 22] [-i KEY if provided]
func DefaultStatusText ¶
func DefaultStatusText() string
func NewHintBar ¶
func NewStatusBar ¶
Types ¶
type App ¶ added in v0.2.1
type App interface {
Run() error
}
func NewTUI ¶
func NewTUI(logger *zap.SugaredLogger, ss ports.ServerService, version, commit string) App
type AppHeader ¶
func NewAppHeader ¶
type SearchBar ¶
type SearchBar struct {
*tview.InputField
// contains filtered or unexported fields
}
func NewSearchBar ¶
func NewSearchBar() *SearchBar
type ServerDetails ¶
func NewServerDetails ¶
func NewServerDetails() *ServerDetails
func (*ServerDetails) ShowEmpty ¶
func (sd *ServerDetails) ShowEmpty()
func (*ServerDetails) UpdateServer ¶
func (sd *ServerDetails) UpdateServer(server domain.Server)
type ServerForm ¶
func NewServerForm ¶
func NewServerForm(mode ServerFormMode, original *domain.Server) *ServerForm
func (*ServerForm) OnCancel ¶
func (sf *ServerForm) OnCancel(fn func()) *ServerForm
func (*ServerForm) OnSave ¶
func (sf *ServerForm) OnSave(fn func(domain.Server, *domain.Server)) *ServerForm
type ServerFormData ¶
type ServerFormMode ¶
type ServerFormMode int
const ( ServerFormAdd ServerFormMode = iota ServerFormEdit )
type ServerList ¶
func NewServerList ¶
func NewServerList() *ServerList
func (*ServerList) GetSelectedServer ¶
func (sl *ServerList) GetSelectedServer() (domain.Server, bool)
func (*ServerList) OnSelection ¶
func (sl *ServerList) OnSelection(fn func(server domain.Server)) *ServerList
func (*ServerList) OnSelectionChange ¶
func (sl *ServerList) OnSelectionChange(fn func(server domain.Server)) *ServerList
func (*ServerList) UpdateServers ¶
func (sl *ServerList) UpdateServers(servers []domain.Server)
Click to show internal directories.
Click to hide internal directories.