shell

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 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 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