mirror of https://github.com/coder/coder.git
20 lines
501 B
Go
20 lines
501 B
Go
package provisionersdk
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/coder/coder/v2/provisionersdk/proto"
|
|
)
|
|
|
|
func ParseErrorf(format string, args ...any) *proto.ParseComplete {
|
|
return &proto.ParseComplete{Error: fmt.Sprintf(format, args...)}
|
|
}
|
|
|
|
func PlanErrorf(format string, args ...any) *proto.PlanComplete {
|
|
return &proto.PlanComplete{Error: fmt.Sprintf(format, args...)}
|
|
}
|
|
|
|
func ApplyErrorf(format string, args ...any) *proto.ApplyComplete {
|
|
return &proto.ApplyComplete{Error: fmt.Sprintf(format, args...)}
|
|
}
|