screens

package
v0.0.0-...-bcabe2d Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContainersModel

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

func NewContainersModel

func NewContainersModel(client *client.Client, containers []types.Container) ContainersModel

func (ContainersModel) Init

func (m ContainersModel) Init() tea.Cmd

func (ContainersModel) Update

func (m ContainersModel) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (ContainersModel) View

func (m ContainersModel) View() string

type InitialModel

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

InitialModel is the UI when the CLI starts, basically loading the repos.

func NewInitialModel

func NewInitialModel(c *client.Client, _ Screen) InitialModel

NewInitialModel creates a new InitialModel with required fields.

func (InitialModel) Init

func (m InitialModel) Init() tea.Cmd

func (InitialModel) Update

func (m InitialModel) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (InitialModel) View

func (m InitialModel) View() string

type Screen

type Screen int
const (
	ContainersScreen Screen = iota
)

Jump to

Keyboard shortcuts

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