Versions in this module Expand all Collapse all v0 v0.7.6 Jun 15, 2024 Changes in this version + const BaseBashOpts + const BaseZshOpts + const BashSection_Aliases + const BashSection_Count + const BashSection_Cwd + const BashSection_EndBytes + const BashSection_Funcs + const BashSection_Ignored + const BashSection_PVars + const BashSection_Vars + const BashSection_Version + const BashShellVersionCmdStr + const DebugState + const DefaultMacOSShell + const FirstExtraFilesFdNum + const GetGitBranchCmdStr + const GetK8sContextCmdStr + const GetK8sNamespaceCmdStr + const GetVersionTimeout + const NumRandomEndBytes + const RemoteBashPath + const RunBashSudoCommandFmt + const RunBashSudoPasswordCommandFmt + const RunCommandFmt + const RunZshSudoCommandFmt + const RunZshSudoPasswordCommandFmt + const ShellStateOutputStatus_Done + const StateOutputFdNum + const ValidateTimeout + const ZModsVarName + const ZshAutoloadFnBody + const ZshFnAutoLoad + const ZshSection_Aliases + const ZshSection_Cwd + const ZshSection_EndBytes + const ZshSection_Env + const ZshSection_Fpath + const ZshSection_Funcs + const ZshSection_Mods + const ZshSection_NumFieldsExpected + const ZshSection_PVars + const ZshSection_Prompt + const ZshSection_Vars + const ZshSection_Version + const ZshShellVersionCmdStr + var BashNoStoreVarNames = map[string]bool + var GetBashShellStateCmds = []string + var ZshForceLoadMods = map[string]bool + var ZshForceOptions = map[string]bool + var ZshIgnoreFuncs = map[string]bool + var ZshIgnoreOptions = map[string]bool + var ZshIgnoreVars = map[string]bool + var ZshSpecialDecls = map[string]bool + var ZshUniqueArrayVars = map[string]bool + var ZshUnsetVars = []string + func BashDeclareStmt(d *DeclareDeclType) string + func DecodeZshMapForDiff(barr []byte) (map[string][]byte, error) + func DetectLocalShellType() string + func EncodeZshMap(m ZshMap) []byte + func EncodeZshMapForApply(m map[string][]byte) string + func GetBashShellState(ctx context.Context, outCh chan ShellStateOutput, stdinDataCh chan []byte) + func GetBashShellStateCmd(fdNum int) (string, []byte) + func GetBashShellStateRedirectCommandStr(outputFdNum int) (string, []byte) + func GetLocalBashMajorVersion() string + func GetLocalBashPath() string + func GetLocalZshMajorVersion() string + func GetLocalZshPath() string + func GetMacUserShell() string + func GetParserConfig(envMap map[string]string) *expand.Config + func GetZshShellStateCmd(fdNum int) (string, []byte) + func HasShell(shellType string) bool + func MakeBashExitTrap(fdNum int) (string, []byte) + func MakeBashShExecCommand(cmdStr string, rcFileName string, usePty bool) *exec.Cmd + func MakeZshExitTrap(fdNum int) (string, []byte) + func ParseZshFunctions(fpathArr []string, fnBytes []byte, partSeparator []byte) map[ZshParamKey]string + func RunSimpleCmdInPty(ecmd *exec.Cmd, endBytes []byte) ([]byte, error) + func StreamCommandWithExtraFd(ctx context.Context, ecmd *exec.Cmd, outputCh chan []byte, extraFdNum int, ...) ([]byte, error) + type DeclareDeclType = shellenv.DeclareDeclType + type RunCommandOpts struct + CommandFdNum int + CommandStdinFdNum int + MaxFdNum int + PwFdNum int + Sudo bool + SudoWithPass bool + type ShellApi interface + ApplyShellStateDiff func(oldState *packet.ShellState, diff *packet.ShellStateDiff) (*packet.ShellState, error) + GetBaseShellOpts func() string + GetLocalMajorVersion func() string + GetLocalShellPath func() string + GetRemoteShellPath func() string + GetShellState func(ctx context.Context, outCh chan ShellStateOutput, stdinDataCh chan []byte) + GetShellType func() string + MakeExitTrap func(fdNum int) (string, []byte) + MakeRcFileStr func(pk *packet.RunPacketType) string + MakeRunCommand func(cmdStr string, opts RunCommandOpts) string + MakeShExecCommand func(cmdStr string, rcFileName string, usePty bool) *exec.Cmd + MakeShellStateDiff func(oldState *packet.ShellState, oldStateHash string, newState *packet.ShellState) (*packet.ShellStateDiff, error) + ParseShellStateOutput func(output []byte) (*packet.ShellState, *packet.ShellStateStats, error) + ValidateCommandSyntax func(cmdStr string) error + func MakeShellApi(shellType string) (ShellApi, error) + type ShellStateOutput struct + Error string + Output []byte + ShellState *packet.ShellState + Stats *packet.ShellStateStats + type ZshMap = map[ZshParamKey]string + func DecodeZshMap(barr []byte) (ZshMap, error) + type ZshParamKey struct + ParamName string + ParamType string + func ZshParamKeyFromString(s string) (ZshParamKey, error) + func (k ZshParamKey) String() string