shell

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2024 License: MIT Imports: 10 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 Kind added in v0.5.0

type Kind string

Kind represents the type of shell.

const (
	Bash Kind = "bash"
	Zsh  Kind = "zsh"
	Dash Kind = "dash"
	Fish Kind = "fish"
)

Define constants for ShellKind here, based on your needs, e.g., Bash, Zsh, etc.

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

func New

func New(logTarget string) Shell

Jump to

Keyboard shortcuts

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