mirror of
https://git.vectorsigma.ru/public/atlantis.git
synced 2026-07-31 21:18:47 +00:00
25 lines
384 B
Go
25 lines
384 B
Go
package events
|
|
|
|
// CommandName is the type of command.
|
|
type CommandName int
|
|
|
|
const (
|
|
Apply CommandName = iota
|
|
Plan
|
|
Help
|
|
// Adding more? Don't forget to update String() below
|
|
)
|
|
|
|
// String returns the string representation of c.
|
|
func (c CommandName) String() string {
|
|
switch c {
|
|
case Apply:
|
|
return "apply"
|
|
case Plan:
|
|
return "plan"
|
|
case Help:
|
|
return "help"
|
|
}
|
|
return ""
|
|
}
|