Documentation ¶
Index ¶
- Constants
- type CmdEnv
- type OpenKeyFn
- type SubShell
- func (v *SubShell) Activate(prj *project.Project, cfg sscommon.Configurable, out output.Outputer) error
- func (v *SubShell) Binary() string
- func (v *SubShell) CleanUserEnv(cfg sscommon.Configurable, envType sscommon.RcIdentification, userScope bool) error
- func (v *SubShell) Deactivate() error
- func (v *SubShell) EnsureRcFileExists() error
- func (v *SubShell) Errors() <-chan error
- func (v *SubShell) IsActive() bool
- func (v *SubShell) IsAvailable() bool
- func (v *SubShell) Quote(value string) string
- func (v *SubShell) RcFile() (string, error)
- func (v *SubShell) RemoveLegacyInstallPath(_ sscommon.Configurable) error
- func (v *SubShell) Run(filename string, args ...string) error
- func (v *SubShell) SetBinary(binary string)
- func (v *SubShell) SetEnv(env map[string]string) error
- func (v *SubShell) SetupShellRcFile(targetDir string, env map[string]string, namespace *project.Namespaced, ...) error
- func (v *SubShell) Shell() string
- func (v *SubShell) WriteCompletionScript(completionScript string) error
- func (v *SubShell) WriteUserEnv(cfg sscommon.Configurable, env map[string]string, ...) error
Constants ¶
View Source
const Name string = "cmd"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CmdEnv ¶
type CmdEnv struct {
// contains filtered or unexported fields
}
func (*CmdEnv) Get ¶
Get retrieves a variable from the user environment, this prioritizes a backup if it exists
type SubShell ¶
type SubShell struct {
// contains filtered or unexported fields
}
SubShell covers the subshell.SubShell interface, reference that for documentation
func (*SubShell) Activate ¶
func (v *SubShell) Activate(prj *project.Project, cfg sscommon.Configurable, out output.Outputer) error
Activate - see subshell.SubShell
func (*SubShell) CleanUserEnv ¶
func (v *SubShell) CleanUserEnv(cfg sscommon.Configurable, envType sscommon.RcIdentification, userScope bool) error
func (*SubShell) Deactivate ¶
Deactivate - see subshell.SubShell
func (*SubShell) EnsureRcFileExists ¶
func (*SubShell) IsAvailable ¶
func (*SubShell) RemoveLegacyInstallPath ¶
func (v *SubShell) RemoveLegacyInstallPath(_ sscommon.Configurable) error
func (*SubShell) SetupShellRcFile ¶
func (v *SubShell) SetupShellRcFile(targetDir string, env map[string]string, namespace *project.Namespaced, cfg sscommon.Configurable) error
SetupShellRcFile - subshell.SubShell
func (*SubShell) WriteCompletionScript ¶
func (*SubShell) WriteUserEnv ¶
func (v *SubShell) WriteUserEnv(cfg sscommon.Configurable, env map[string]string, envType sscommon.RcIdentification, userScope bool) error
WriteUserEnv - see subshell.SubShell
Click to show internal directories.
Click to hide internal directories.