Versions in this module Expand all Collapse all v0 v0.7.6 Jun 15, 2024 Changes in this version + const DebugFlag_LogRcFile + const DebugRcFileName + const DebugReturnStateFileName + const DefaultWaveshellHome + const DefaultWaveshellInstallBinDir + const DefaultWaveshellName + const ForceDebugLog + const HomeVarName + const LogFileName + const ProcessType_Unknown + const ProcessType_WaveShellServer + const ProcessType_WaveShellSingle + const ProcessType_WaveSrv + const RcFilesDirBaseName + const RemoteIdFile + const SSHCommandVarName + const SessionsDirBaseName + const WaveshellDebugVarName + const WaveshellHomeVarName + const WaveshellInstallBinVarName + const WaveshellPathVarName + const WaveshellVersion + var BuildTime string = "0" + var DebugLogEnabled = false + var DebugLogger *log.Logger + var ProcessType string = ProcessType_Unknown + func BoundInt(ival int, minVal int, maxVal int) int + func BoundInt64(ival int64, minVal int64, maxVal int64) int64 + func CacheEnsureDir(dirName string, cacheKey string, perm os.FileMode, dirDesc string) error + func EnsureRcFilesDir() (string, error) + func ExpandHomeDir(pathStr string) string + func GetDebugRcFileName() string + func GetDebugReturnStateFileName() string + func GetErrorCode(err error) string + func GetHomeDir() string + func GetRemoteId() (string, error) + func GetWaveshellHomeDir() string + func GetWaveshellPath() (string, error) + func GoArchOptFile(version string, goos string, goarch string) string + func HasDebugFlag(envMap map[string]string, flagName string) bool + func InitDebugLog(prefix string) + func IsOption(argStr string) bool + func IsWaveSrv() bool + func Logf(fmtStr string, args ...interface{}) + func SetBuildTime(build string) + func SetEnableDebugLog(enable bool) + func TryMkdirs(dirName string, perm os.FileMode, dirDesc string) error + func ValidGoArch(goos string, goarch string) bool + type CodedError struct + Err error + ErrorCode string + func CodedErrorf(code string, format string, args ...interface{}) *CodedError + func MakeCodedError(code string, err error) *CodedError + func (c *CodedError) Error() string + func (c *CodedError) Unwrap() error + type CommandFileNames struct + PtyOutFile string + RunnerOutFile string + StdinFifo string + type CommandKey string + func MakeCommandKey(screenId string, lineId string) CommandKey + func (ckey CommandKey) GetCmdId() string + func (ckey CommandKey) GetGroupId() string + func (ckey CommandKey) GetSessionId() string + func (ckey CommandKey) IsEmpty() bool + func (ckey CommandKey) Split() (string, string) + func (ckey CommandKey) Validate(typeStr string) error + type OptsIter struct + Opts []string + Pos int + func MakeOptsIter(opts []string) *OptsIter + func (iter *OptsIter) Current() string + func (iter *OptsIter) HasNext() bool + func (iter *OptsIter) IsNextPlain() bool + func (iter *OptsIter) Next() string + func (iter *OptsIter) Rest() []string