Documentation ¶
Index ¶
- Constants
- Variables
- 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
- type CommandFileNames
- type CommandKey
- type OptsIter
Constants ¶
View Source
const ( ProcessType_Unknown = "unknown" ProcessType_WaveSrv = "wavesrv" ProcessType_WaveShellSingle = "wsh-1" ProcessType_WaveShellServer = "wsh-s" )
View Source
const DebugFlag_LogRcFile = "logrc"
View Source
const DebugRcFileName = "debug.rcfile"
View Source
const DebugReturnStateFileName = "debug.returnstate"
View Source
const DefaultWaveshellHome = "~/.mshell"
View Source
const DefaultWaveshellInstallBinDir = "/opt/mshell/bin"
View Source
const DefaultWaveshellName = "mshell"
View Source
const ForceDebugLog = false
View Source
const HomeVarName = "HOME"
View Source
const LogFileName = "mshell.log"
View Source
const RcFilesDirBaseName = "rcfiles"
View Source
const RemoteIdFile = "remoteid"
View Source
const SSHCommandVarName = "SSH_COMMAND"
View Source
const SessionsDirBaseName = "sessions"
View Source
const WaveshellDebugVarName = "MSHELL_DEBUG"
View Source
const WaveshellHomeVarName = "MSHELL_HOME"
View Source
const WaveshellInstallBinVarName = "MSHELL_INSTALLBIN_PATH"
View Source
const WaveshellPathVarName = "MSHELL_PATH"
View Source
const WaveshellVersion = "v0.7.0"
Variables ¶
View Source
var BuildTime string = "0"
View Source
var DebugLogEnabled = false
View Source
var DebugLogger *log.Logger
View Source
var ProcessType string = ProcessType_Unknown
Functions ¶
func CacheEnsureDir ¶
func EnsureRcFilesDir ¶
func ExpandHomeDir ¶
func GetDebugRcFileName ¶
func GetDebugRcFileName() string
func GetDebugReturnStateFileName ¶
func GetDebugReturnStateFileName() string
func GetErrorCode ¶
func GetHomeDir ¶
func GetHomeDir() string
func GetRemoteId ¶
func GetWaveshellHomeDir ¶
func GetWaveshellHomeDir() string
func GetWaveshellPath ¶
func InitDebugLog ¶
func InitDebugLog(prefix string)
func SetBuildTime ¶
func SetBuildTime(build string)
func SetEnableDebugLog ¶
func SetEnableDebugLog(enable bool)
func ValidGoArch ¶
Types ¶
type CodedError ¶
func CodedErrorf ¶
func CodedErrorf(code string, format string, args ...interface{}) *CodedError
func MakeCodedError ¶
func MakeCodedError(code string, err error) *CodedError
func (*CodedError) Error ¶
func (c *CodedError) Error() string
func (*CodedError) Unwrap ¶
func (c *CodedError) Unwrap() error
type CommandFileNames ¶
type CommandKey ¶
type CommandKey string
func MakeCommandKey ¶
func MakeCommandKey(screenId string, lineId string) CommandKey
func (CommandKey) GetCmdId ¶
func (ckey CommandKey) GetCmdId() string
func (CommandKey) GetGroupId ¶
func (ckey CommandKey) GetGroupId() string
func (CommandKey) GetSessionId ¶
func (ckey CommandKey) GetSessionId() string
deprecated (use GetGroupId instead)
func (CommandKey) IsEmpty ¶
func (ckey CommandKey) IsEmpty() bool
func (CommandKey) Split ¶
func (ckey CommandKey) Split() (string, string)
func (CommandKey) Validate ¶
func (ckey CommandKey) Validate(typeStr string) error
Click to show internal directories.
Click to hide internal directories.