components

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2022 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHeaderComponent

func NewHeaderComponent(root RootModel) tea.Model

Types

type ErrorComponent added in v0.0.9

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

func NewErrorComponent added in v0.0.9

func NewErrorComponent(message string, duration time.Duration) (*ErrorComponent, tea.Cmd)

func (ErrorComponent) Init added in v0.0.9

func (e ErrorComponent) Init() tea.Cmd

func (ErrorComponent) Update added in v0.0.9

func (e ErrorComponent) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (ErrorComponent) View added in v0.0.9

func (e ErrorComponent) View() string

type ErrorComponentTimeoutMsg added in v0.0.9

type ErrorComponentTimeoutMsg struct{}

type RootModel

type RootModel interface {
	GetGlobal() *cli.GlobalContext

	GetCurrentProfile() *cli.Profile
	SetCurrentProfile(profile *cli.Profile) error

	GetCurrentInstallation() *cli.Installation
	SetCurrentInstallation(installation *cli.Installation) error

	GetAPIClient() graphql.Client

	Size() tea.WindowSizeMsg
	SetSize(size tea.WindowSizeMsg)

	View() string
	Height() int
}

Jump to

Keyboard shortcuts

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