shell

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

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)
}

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