cmd

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute()

func InitDB

func InitDB() (*gorm.DB, error)

Types

type Item

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

func (Item) FilterValue

func (i Item) FilterValue() string

type ItemDelegate

type ItemDelegate struct {
}

func (*ItemDelegate) Height

func (d *ItemDelegate) Height() int

func (*ItemDelegate) Render

func (d *ItemDelegate) Render(w io.Writer, m list.Model, index int, listItem list.Item)

func (*ItemDelegate) Spacing

func (d *ItemDelegate) Spacing() int

func (*ItemDelegate) Update

func (d *ItemDelegate) Update(msg tea.Msg, m *list.Model) tea.Cmd

type Selector

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

func NewSelector

func NewSelector(servers []Server) *Selector

func (*Selector) Init

func (s *Selector) Init() tea.Cmd

func (*Selector) Update

func (s *Selector) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (*Selector) View

func (s *Selector) View() string

type Server

type Server struct {
	ID           uint
	Name         string
	Address      string
	User         string
	Port         uint
	IdentityFile string
	CreatedAt    time.Time
	UpdatedAt    time.Time
}

func (*Server) ConnectWithSSH

func (s *Server) ConnectWithSSH() error

Jump to

Keyboard shortcuts

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