Documentation
¶
Index ¶
- func DiscoverShell(command *cli.Command) (string, error)
- func NewShellAdapter(shell string) (interfaces.ShellAdapter, error)
- func Run(session interfaces.SessionInterface, shell interfaces.ShellAdapter) (*os.ProcessState, error)
- type NullShellAdapter
- func (n *NullShellAdapter) GetBootstrap(string) string
- func (n *NullShellAdapter) GetEnv() []string
- func (n *NullShellAdapter) GetRcFile() string
- func (n *NullShellAdapter) GetShArgs() []string
- func (n *NullShellAdapter) GetShBin() string
- func (n *NullShellAdapter) Run(session interfaces.SessionInterface) (*os.ProcessState, error)
- func (n *NullShellAdapter) WaitForStart(*os.File) error
- type ShAdapter
- func (z *ShAdapter) GetBootstrap(rcFilePath string) string
- func (z *ShAdapter) GetEnv() []string
- func (z *ShAdapter) GetRcFile() string
- func (z *ShAdapter) GetShArgs() []string
- func (z *ShAdapter) GetShBin() string
- func (z *ShAdapter) Run(session interfaces.SessionInterface) (*os.ProcessState, error)
- func (z *ShAdapter) WaitForStart(pty *os.File) error
- type TestShellAdapter
- func (n *TestShellAdapter) GetBootstrap(string) string
- func (n *TestShellAdapter) GetEnv() []string
- func (n *TestShellAdapter) GetRcFile() string
- func (n *TestShellAdapter) GetShArgs() []string
- func (n *TestShellAdapter) GetShBin() string
- func (n *TestShellAdapter) Run(session interfaces.SessionInterface) (*os.ProcessState, error)
- func (n *TestShellAdapter) WaitForStart(*os.File) error
- type ZshAdapter
- func (z *ZshAdapter) GetBootstrap(rcFilePath string) string
- func (z *ZshAdapter) GetEnv() []string
- func (z *ZshAdapter) GetRcFile() string
- func (z *ZshAdapter) GetShArgs() []string
- func (z *ZshAdapter) GetShBin() string
- func (z *ZshAdapter) Run(session interfaces.SessionInterface) (*os.ProcessState, error)
- func (z *ZshAdapter) WaitForStart(pty *os.File) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewShellAdapter ¶
func NewShellAdapter(shell string) (interfaces.ShellAdapter, error)
func Run ¶
func Run(session interfaces.SessionInterface, shell interfaces.ShellAdapter) (*os.ProcessState, 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 (n *NullShellAdapter) Run(session interfaces.SessionInterface) (*os.ProcessState, error)
func (*NullShellAdapter) WaitForStart ¶
func (n *NullShellAdapter) WaitForStart(*os.File) error
type ShAdapter ¶
type ShAdapter struct {
// contains filtered or unexported fields
}
func (*ShAdapter) GetBootstrap ¶
func (*ShAdapter) Run ¶
func (z *ShAdapter) Run(session interfaces.SessionInterface) (*os.ProcessState, error)
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 (n *TestShellAdapter) Run(session interfaces.SessionInterface) (*os.ProcessState, error)
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 (z *ZshAdapter) Run(session interfaces.SessionInterface) (*os.ProcessState, error)
func (*ZshAdapter) WaitForStart ¶
func (z *ZshAdapter) WaitForStart(pty *os.File) error
Wait for the ---START--- marker to appear on the PTY
Click to show internal directories.
Click to hide internal directories.