2024-01-05 20:07:49 -06:00
|
|
|
package shell
|
2024-01-05 20:01:07 -06:00
|
|
|
|
|
|
|
// initializes logging and command line options
|
|
|
|
|
|
|
|
import (
|
|
|
|
"go.wit.com/log"
|
|
|
|
)
|
|
|
|
|
|
|
|
var INFO log.LogFlag
|
2024-01-05 20:52:42 -06:00
|
|
|
var RUN log.LogFlag
|
|
|
|
var SSH log.LogFlag
|
2024-01-05 20:01:07 -06:00
|
|
|
|
|
|
|
func init() {
|
|
|
|
INFO.B = false
|
|
|
|
INFO.Name = "INFO"
|
|
|
|
INFO.Subsystem = "shell"
|
|
|
|
INFO.Short = "shell"
|
|
|
|
INFO.Desc = "general info"
|
|
|
|
INFO.Register()
|
2024-01-05 20:52:42 -06:00
|
|
|
|
|
|
|
RUN.B = false
|
|
|
|
RUN.Name = "RUN"
|
|
|
|
RUN.Subsystem = "shell"
|
|
|
|
RUN.Short = "shell"
|
|
|
|
RUN.Desc = "Run() info"
|
|
|
|
RUN.Register()
|
|
|
|
|
|
|
|
SSH.B = false
|
|
|
|
SSH.Name = "SSH"
|
|
|
|
SSH.Subsystem = "shell"
|
|
|
|
SSH.Short = "shell"
|
|
|
|
SSH.Desc = "ssh() info"
|
|
|
|
SSH.Register()
|
2024-01-05 20:01:07 -06:00
|
|
|
}
|