From d34cecc66811df8b73e930174a3c09b856305c85 Mon Sep 17 00:00:00 2001 From: Adrien Delorme Date: Tue, 12 May 2020 12:29:31 +0200 Subject: [PATCH] Update new_stuff.go --- packer/new_stuff.go | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/packer/new_stuff.go b/packer/new_stuff.go index baede1edf..a7c79ff58 100644 --- a/packer/new_stuff.go +++ b/packer/new_stuff.go @@ -9,7 +9,8 @@ type GetBuildsOptions struct { } type BuildGetter interface { - // GetBuilds return all possible builds for a config. It also starts them. + // GetBuilds return all possible builds for a config. It also starts all + // builders. // TODO(azr): rename to builder starter ? GetBuilds(GetBuildsOptions) ([]Build, hcl.Diagnostics) } @@ -19,15 +20,20 @@ type FixConfigMode int const ( Stdout FixConfigMode = iota + // Inplace fixes your files on the spot. Inplace + // Diff shows a full diff. Diff + // SimpleOutput will simply print what the config should be; it will only + // work when a single file is passed. + SimpleOutput ) type FixConfigOptions struct { DiffOnly bool } -type OtherInterfaceyMacOtherInterfaceFace interface { +type ConfigFixer interface { // FixConfig will output the config in a fixed manner. FixConfig(FixConfigOptions) hcl.Diagnostics }