shell

package
v0.0.0-...-6de7ac0 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2026 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecuteCommand

func ExecuteCommand(args []string) error

func FormatCompletions

func FormatCompletions(completions []string, termWidth int) string

func FormatVPPStyle

func FormatVPPStyle(items []string) string

func GetDryRunInfo

func GetDryRunInfo(command string) string

func GetServiceStatus

func GetServiceStatus() map[string]bool

func HandleHelpRequest

func HandleHelpRequest(command string) error

func IsConfigurationMode

func IsConfigurationMode() bool

func IsOperationalMode

func IsOperationalMode() bool

func IsServiceAvailable

func IsServiceAvailable(serviceType detector.CommandType) bool

func SetMode

func SetMode(mode ShellMode)

func SetPrompt

func SetPrompt(hostname string)

func StartInteractiveShell

func StartInteractiveShell() error

func ValidateCommand

func ValidateCommand(command string) error

Types

type FloofCompleter

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

func NewFloofCompleter

func NewFloofCompleter() *FloofCompleter

func (*FloofCompleter) Do

func (c *FloofCompleter) Do(line []rune, pos int) (newLine [][]rune, length int)

type ShellMode

type ShellMode int
const (
	OperationalMode ShellMode = iota
	ConfigurationMode
)

func GetCurrentMode

func GetCurrentMode() ShellMode

func (ShellMode) String

func (m ShellMode) String() string

Jump to

Keyboard shortcuts

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