slim/pkg/command/command.go
2022-01-09 19:42:33 -08:00

36 lines
779 B
Go

package command
// Command type constants
const (
Build Type = "build"
Profile Type = "profile"
Xray Type = "xray"
Lint Type = "lint"
Containerize Type = "containerize"
Convert Type = "convert"
Edit Type = "edit"
Debug Type = "debug"
Probe Type = "probe"
Run Type = "run"
Server Type = "server"
Registry Type = "registry"
Version Type = "version"
Update Type = "update"
)
// Type is the command type name
type Type string
// Command state constants
const (
StateUnknown = "unknown"
StateError = "error"
StateStarted = "started"
StateCompleted = "completed"
StateExited = "exited"
StateDone = "done"
)
// State is the command state type
type State string