{"modulePath":"github.com/wavetermdev/waveterm/waveshell","version":"v0.7.6","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package base\n\n## Constants\n\n```go\nconst (\n\tProcessType_Unknown         = \"unknown\"\n\tProcessType_WaveSrv         = \"wavesrv\"\n\tProcessType_WaveShellSingle = \"wsh-1\"\n\tProcessType_WaveShellServer = \"wsh-s\"\n)\n```\n\n```go\nconst DebugFlag_LogRcFile = \"logrc\"\n```\n\n```go\nconst DebugRcFileName = \"debug.rcfile\"\n```\n\n```go\nconst DebugReturnStateFileName = \"debug.returnstate\"\n```\n\n```go\nconst DefaultWaveshellHome = \"~/.mshell\"\n```\n\n```go\nconst DefaultWaveshellInstallBinDir = \"/opt/mshell/bin\"\n```\n\n```go\nconst DefaultWaveshellName = \"mshell\"\n```\n\n```go\nconst ForceDebugLog = false\n```\n\n```go\nconst HomeVarName = \"HOME\"\n```\n\n```go\nconst LogFileName = \"mshell.log\"\n```\n\n```go\nconst RcFilesDirBaseName = \"rcfiles\"\n```\n\n```go\nconst RemoteIdFile = \"remoteid\"\n```\n\n```go\nconst SSHCommandVarName = \"SSH_COMMAND\"\n```\n\n```go\nconst SessionsDirBaseName = \"sessions\"\n```\n\n```go\nconst WaveshellDebugVarName = \"MSHELL_DEBUG\"\n```\n\n```go\nconst WaveshellHomeVarName = \"MSHELL_HOME\"\n```\n\n```go\nconst WaveshellInstallBinVarName = \"MSHELL_INSTALLBIN_PATH\"\n```\n\n```go\nconst WaveshellPathVarName = \"MSHELL_PATH\"\n```\n\n```go\nconst WaveshellVersion = \"v0.7.0\"\n```\n\n## Variables\n\n```go\nvar BuildTime string = \"0\"\n```\n\n```go\nvar DebugLogEnabled = false\n```\n\n```go\nvar DebugLogger *log.Logger\n```\n\n```go\nvar ProcessType string = ProcessType_Unknown\n```\n\n## Functions\n\n```go\nfunc BoundInt(ival int, minVal int, maxVal int) int\n```\n\n```go\nfunc BoundInt64(ival int64, minVal int64, maxVal int64) int64\n```\n\n```go\nfunc CacheEnsureDir(dirName string, cacheKey string, perm os.FileMode, dirDesc string) error\n```\n\n```go\nfunc EnsureRcFilesDir() (string, error)\n```\n\n```go\nfunc ExpandHomeDir(pathStr string) string\n```\n\n```go\nfunc GetDebugRcFileName() string\n```\n\n```go\nfunc GetDebugReturnStateFileName() string\n```\n\n```go\nfunc GetErrorCode(err error) string\n```\n\n```go\nfunc GetHomeDir() string\n```\n\n```go\nfunc GetRemoteId() (string, error)\n```\n\n```go\nfunc GetWaveshellHomeDir() string\n```\n\n```go\nfunc GetWaveshellPath() (string, error)\n```\n\n```go\nfunc GoArchOptFile(version string, goos string, goarch string) string\n```\n\n```go\nfunc HasDebugFlag(envMap map[string]string, flagName string) bool\n```\n\n```go\nfunc InitDebugLog(prefix string)\n```\n\n```go\nfunc IsOption(argStr string) bool\n```\n\n```go\nfunc IsWaveSrv() bool\n```\n\n```go\nfunc Logf(fmtStr string, args ...interface{})\n```\n\n```go\nfunc SetBuildTime(build string)\n```\n\n```go\nfunc SetEnableDebugLog(enable bool)\n```\n\n```go\nfunc TryMkdirs(dirName string, perm os.FileMode, dirDesc string) error\n```\n\n```go\nfunc ValidGoArch(goos string, goarch string) bool\n```\n\n## Types\n\n```go\ntype CodedError struct {\n\tErrorCode string\n\tErr       error\n}\n```\n\n```go\nfunc CodedErrorf(code string, format string, args ...interface{}) *CodedError\n```\n\n```go\nfunc MakeCodedError(code string, err error) *CodedError\n```\n\n```go\nfunc (c *CodedError) Error() string\n```\n\n```go\nfunc (c *CodedError) Unwrap() error\n```\n\n```go\ntype CommandFileNames struct {\n\tPtyOutFile    string\n\tStdinFifo     string\n\tRunnerOutFile string\n}\n```\n\n```go\ntype CommandKey string\n```\n\n```go\nfunc MakeCommandKey(screenId string, lineId string) CommandKey\n```\n\n```go\nfunc (ckey CommandKey) GetCmdId() string\n```\n\n```go\nfunc (ckey CommandKey) GetGroupId() string\n```\n\n```go\nfunc (ckey CommandKey) GetSessionId() string\n```\ndeprecated (use GetGroupId instead)\n\n```go\nfunc (ckey CommandKey) IsEmpty() bool\n```\n\n```go\nfunc (ckey CommandKey) Split() (string, string)\n```\n\n```go\nfunc (ckey CommandKey) Validate(typeStr string) error\n```\n\n```go\ntype OptsIter struct {\n\tPos  int\n\tOpts []string\n}\n```\n\n```go\nfunc MakeOptsIter(opts []string) *OptsIter\n```\n\n```go\nfunc (iter *OptsIter) Current() string\n```\n\n```go\nfunc (iter *OptsIter) HasNext() bool\n```\n\n```go\nfunc (iter *OptsIter) IsNextPlain() bool\n```\n\n```go\nfunc (iter *OptsIter) Next() string\n```\n\n```go\nfunc (iter *OptsIter) Rest() []string\n```\n\n","path":"github.com/wavetermdev/waveterm/waveshell/pkg/base","name":"base","synopsis":"","isRedistributable":true}
