packer/command/command.go

14 lines
471 B
Go
Raw Normal View History

package command
import "context"
// PackerInterface is the interface to use packer; it represents ways users can
// use Packer. A call returns a int that will be the exit code of Packer,
// everything else is up to the implementer.
type PackerInterface interface {
2020-05-08 06:00:06 -04:00
Build(ctx context.Context, args *BuildArgs) int
Console(ctx context.Context, args *ConsoleArgs) int
Fix(ctx context.Context, args *FixArgs) int
Validate(ctx context.Context, args *ValidateArgs) int
}