state

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppState

type AppState struct {
	RoverConnections configuration.RoverConnections // used to track state changes, if the connection state changes
	Config           configuration.RoverctlConfig
	// Window sizes
	WindowWidth  int
	WindowHeight int
	Quote        string
	// CLI/TUI mode
	Interactive bool
	// If a shell command should be executed on quit
	QuitCommand string
}

This is the struct that implements the Bubbletea model interface. It contains all the app state. It is used as a singleton to keep track of the state of the app

func Get

func Get() *AppState

Jump to

Keyboard shortcuts

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