mirror of
https://git.vectorsigma.ru/public/atlantis.git
synced 2026-08-06 16:28:51 +00:00
Delete old templates
This commit is contained in:
@@ -17,6 +17,30 @@ type CommandHandler struct {
|
||||
logger *logging.SimpleLogger
|
||||
}
|
||||
|
||||
type CommandResponse struct {
|
||||
Error error
|
||||
Failure string
|
||||
ProjectResults []ProjectResult
|
||||
Command CommandType
|
||||
}
|
||||
|
||||
type ProjectResult struct {
|
||||
Path string
|
||||
Error error
|
||||
Failure string
|
||||
PlanSuccess *PlanSuccess
|
||||
ApplySuccess string
|
||||
}
|
||||
func (p ProjectResult) Status() Status {
|
||||
if p.Error != nil {
|
||||
return Error
|
||||
}
|
||||
if p.Failure != "" {
|
||||
return Failure
|
||||
}
|
||||
return Success
|
||||
}
|
||||
|
||||
type CommandType int
|
||||
|
||||
const (
|
||||
|
||||
Reference in New Issue
Block a user