shell

package
v0.9.9 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const RunbookCommandDelimiter = "COMMA"

Variables

This section is empty.

Functions

func SupportedShells added in v0.5.0

func SupportedShells() []string

Types

type SetupChecker added in v0.7.1

type SetupChecker interface {
	// CheckSetup returns an non nil error if the shell setup is not correct
	// The error message should contain instructions on how to fix the setup and is safe to display to the user
	CheckSetup() error
}

func NewSetupChecker added in v0.7.1

func NewSetupChecker() SetupChecker

type Shell

type Shell interface {
	Spawn(ctx context.Context) (*exec.Cmd, error)
	TailHistory(ctx context.Context) ([]string, error)
	SpawnHistoryExpander(ctx context.Context) (*exec.Cmd, error)
	SpawnRunbookRunner(ctx context.Context, runbook *client.Runbook) (*exec.Cmd, error)
	DefaultStartingArrayIndex() int
}

func New

func New(logTarget string) Shell

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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