ui

package
v0.0.0-...-902d028 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2025 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NotDirectlyExecutable = errors.New("Not directly executable")

Functions

func Execute

func Execute(commandText string) error

func InitSubsystem

func InitSubsystem()

func LoadConfig

func LoadConfig()

func SetupApplication

func SetupApplication() *tview.Application

func Shutdown

func Shutdown()

Types

type Command

type Command struct {
	Name        string
	Description string
	// contains filtered or unexported fields
}

func (Command) Completions

func (c Command) Completions(currentCommandText string) (entries []string)

func (Command) Execute

func (c Command) Execute(commandText string) (err error)

func (Command) String

func (c Command) String() string

type Config

type Config struct {
	History struct {
		Last10Hosts    []string `yaml:"last_hosts"`
		Last10Commands []string `yaml:"last_commands"`
	}
	AutoRegisterDrivers []string  `yaml:"auto_register_driver"`
	LastUpdated         time.Time `yaml:"last_updated"`
	LogLevel            string    `yaml:"log_level"`
	MaxConsoleLines     int       `yaml:"max_console_lines"`
	MaxOutputLines      int       `yaml:"max_output_lines"`
}

Jump to

Keyboard shortcuts

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