shells

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2025 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DiscoverShell

func DiscoverShell(command *cli.Command) (string, error)

func NewShellAdapter

func NewShellAdapter(shell string) (interfaces.ShellAdapter, error)

Types

type NullShellAdapter

type NullShellAdapter struct{}

func (*NullShellAdapter) GetBootstrap

func (n *NullShellAdapter) GetBootstrap(string) string

func (*NullShellAdapter) GetEnv

func (n *NullShellAdapter) GetEnv() []string

func (*NullShellAdapter) GetRcFile

func (n *NullShellAdapter) GetRcFile() string

func (*NullShellAdapter) GetShArgs

func (n *NullShellAdapter) GetShArgs() []string

func (*NullShellAdapter) GetShBin

func (n *NullShellAdapter) GetShBin() string

func (*NullShellAdapter) Run

func (*NullShellAdapter) WaitForStart

func (n *NullShellAdapter) WaitForStart(*os.File) error

type ShAdapter

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

func (*ShAdapter) GetBootstrap

func (z *ShAdapter) GetBootstrap(rcFilePath string) string

func (*ShAdapter) GetEnv

func (z *ShAdapter) GetEnv() []string

func (*ShAdapter) GetRcFile

func (z *ShAdapter) GetRcFile() string

func (*ShAdapter) GetShArgs

func (z *ShAdapter) GetShArgs() []string

func (*ShAdapter) GetShBin

func (z *ShAdapter) GetShBin() string

func (*ShAdapter) Run

func (*ShAdapter) WaitForStart

func (z *ShAdapter) WaitForStart(pty *os.File) error

Wait for the ---START--- marker to appear on the PTY

type TestShellAdapter added in v1.1.0

type TestShellAdapter struct{}

func (*TestShellAdapter) GetBootstrap added in v1.1.0

func (n *TestShellAdapter) GetBootstrap(string) string

func (*TestShellAdapter) GetEnv added in v1.1.0

func (n *TestShellAdapter) GetEnv() []string

func (*TestShellAdapter) GetRcFile added in v1.1.0

func (n *TestShellAdapter) GetRcFile() string

func (*TestShellAdapter) GetShArgs added in v1.1.0

func (n *TestShellAdapter) GetShArgs() []string

func (*TestShellAdapter) GetShBin added in v1.1.0

func (n *TestShellAdapter) GetShBin() string

func (*TestShellAdapter) Run added in v1.1.0

func (*TestShellAdapter) WaitForStart added in v1.1.0

func (n *TestShellAdapter) WaitForStart(*os.File) error

type ZshAdapter

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

func (*ZshAdapter) GetBootstrap

func (z *ZshAdapter) GetBootstrap(rcFilePath string) string

func (*ZshAdapter) GetEnv

func (z *ZshAdapter) GetEnv() []string

func (*ZshAdapter) GetRcFile

func (z *ZshAdapter) GetRcFile() string

func (*ZshAdapter) GetShArgs

func (z *ZshAdapter) GetShArgs() []string

func (*ZshAdapter) GetShBin

func (z *ZshAdapter) GetShBin() string

func (*ZshAdapter) Run

func (*ZshAdapter) WaitForStart

func (z *ZshAdapter) WaitForStart(pty *os.File) error

Wait for the ---START--- marker to appear on the PTY

Jump to

Keyboard shortcuts

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