s/boot_command/bootcommand/

This commit is contained in:
Matthew Hooker 2018-04-18 14:53:59 -07:00
parent 7990966a09
commit c6299972b9
No known key found for this signature in database
GPG Key ID: 7B5F933D9CE8C6A1
28 changed files with 22 additions and 17 deletions

View File

@ -74,8 +74,8 @@ fmt-examples:
# source files. # source files.
generate: deps ## Generate dynamically generated code generate: deps ## Generate dynamically generated code
go generate . go generate .
gofmt -w common/boot_command/boot_command.go gofmt -w common/bootcommand/boot_command.go
goimports -w common/boot_command/boot_command.go goimports -w common/bootcommand/boot_command.go
gofmt -w command/plugin.go gofmt -w command/plugin.go
test: deps fmt-check ## Run unit tests test: deps fmt-check ## Run unit tests

View File

@ -7,7 +7,7 @@ import (
"time" "time"
"github.com/hashicorp/packer/common" "github.com/hashicorp/packer/common"
"github.com/hashicorp/packer/common/boot_command" "github.com/hashicorp/packer/common/bootcommand"
"github.com/hashicorp/packer/helper/multistep" "github.com/hashicorp/packer/helper/multistep"
"github.com/hashicorp/packer/packer" "github.com/hashicorp/packer/packer"
"github.com/hashicorp/packer/template/interpolate" "github.com/hashicorp/packer/template/interpolate"

View File

@ -7,7 +7,7 @@ import (
"time" "time"
packer_common "github.com/hashicorp/packer/common" packer_common "github.com/hashicorp/packer/common"
"github.com/hashicorp/packer/common/boot_command" "github.com/hashicorp/packer/common/bootcommand"
"github.com/hashicorp/packer/helper/multistep" "github.com/hashicorp/packer/helper/multistep"
"github.com/hashicorp/packer/packer" "github.com/hashicorp/packer/packer"
"github.com/hashicorp/packer/template/interpolate" "github.com/hashicorp/packer/template/interpolate"

View File

@ -7,7 +7,7 @@ import (
parallelscommon "github.com/hashicorp/packer/builder/parallels/common" parallelscommon "github.com/hashicorp/packer/builder/parallels/common"
"github.com/hashicorp/packer/common" "github.com/hashicorp/packer/common"
"github.com/hashicorp/packer/common/boot_command" "github.com/hashicorp/packer/common/bootcommand"
"github.com/hashicorp/packer/helper/communicator" "github.com/hashicorp/packer/helper/communicator"
"github.com/hashicorp/packer/helper/config" "github.com/hashicorp/packer/helper/config"
"github.com/hashicorp/packer/helper/multistep" "github.com/hashicorp/packer/helper/multistep"

View File

@ -6,7 +6,7 @@ import (
parallelscommon "github.com/hashicorp/packer/builder/parallels/common" parallelscommon "github.com/hashicorp/packer/builder/parallels/common"
"github.com/hashicorp/packer/common" "github.com/hashicorp/packer/common"
"github.com/hashicorp/packer/common/boot_command" "github.com/hashicorp/packer/common/bootcommand"
"github.com/hashicorp/packer/helper/config" "github.com/hashicorp/packer/helper/config"
"github.com/hashicorp/packer/packer" "github.com/hashicorp/packer/packer"
"github.com/hashicorp/packer/template/interpolate" "github.com/hashicorp/packer/template/interpolate"

View File

@ -8,7 +8,7 @@ import (
"time" "time"
"github.com/hashicorp/packer/common" "github.com/hashicorp/packer/common"
"github.com/hashicorp/packer/common/boot_command" "github.com/hashicorp/packer/common/bootcommand"
"github.com/hashicorp/packer/helper/multistep" "github.com/hashicorp/packer/helper/multistep"
"github.com/hashicorp/packer/packer" "github.com/hashicorp/packer/packer"
"github.com/hashicorp/packer/template/interpolate" "github.com/hashicorp/packer/template/interpolate"

View File

@ -6,7 +6,7 @@ import (
"time" "time"
"github.com/hashicorp/packer/common" "github.com/hashicorp/packer/common"
"github.com/hashicorp/packer/common/boot_command" "github.com/hashicorp/packer/common/bootcommand"
"github.com/hashicorp/packer/helper/multistep" "github.com/hashicorp/packer/helper/multistep"
"github.com/hashicorp/packer/packer" "github.com/hashicorp/packer/packer"
"github.com/hashicorp/packer/template/interpolate" "github.com/hashicorp/packer/template/interpolate"

View File

@ -8,7 +8,7 @@ import (
"time" "time"
"github.com/hashicorp/packer/common" "github.com/hashicorp/packer/common"
"github.com/hashicorp/packer/common/boot_command" "github.com/hashicorp/packer/common/bootcommand"
"github.com/hashicorp/packer/helper/multistep" "github.com/hashicorp/packer/helper/multistep"
"github.com/hashicorp/packer/packer" "github.com/hashicorp/packer/packer"
"github.com/hashicorp/packer/template/interpolate" "github.com/hashicorp/packer/template/interpolate"

View File

@ -11,7 +11,7 @@ import (
vmwcommon "github.com/hashicorp/packer/builder/vmware/common" vmwcommon "github.com/hashicorp/packer/builder/vmware/common"
"github.com/hashicorp/packer/common" "github.com/hashicorp/packer/common"
"github.com/hashicorp/packer/common/boot_command" "github.com/hashicorp/packer/common/bootcommand"
"github.com/hashicorp/packer/helper/communicator" "github.com/hashicorp/packer/helper/communicator"
"github.com/hashicorp/packer/helper/config" "github.com/hashicorp/packer/helper/config"
"github.com/hashicorp/packer/helper/multistep" "github.com/hashicorp/packer/helper/multistep"

View File

@ -12,10 +12,11 @@ import (
"strconv" "strconv"
"strings" "strings"
"testing"
"github.com/hashicorp/packer/packer" "github.com/hashicorp/packer/packer"
"github.com/hashicorp/packer/provisioner/shell" "github.com/hashicorp/packer/provisioner/shell"
"github.com/hashicorp/packer/template" "github.com/hashicorp/packer/template"
"testing"
) )
var vmxTestBuilderConfig = map[string]string{ var vmxTestBuilderConfig = map[string]string{

View File

@ -6,7 +6,7 @@ import (
vmwcommon "github.com/hashicorp/packer/builder/vmware/common" vmwcommon "github.com/hashicorp/packer/builder/vmware/common"
"github.com/hashicorp/packer/common" "github.com/hashicorp/packer/common"
"github.com/hashicorp/packer/common/boot_command" "github.com/hashicorp/packer/common/bootcommand"
"github.com/hashicorp/packer/helper/config" "github.com/hashicorp/packer/helper/config"
"github.com/hashicorp/packer/packer" "github.com/hashicorp/packer/packer"
"github.com/hashicorp/packer/template/interpolate" "github.com/hashicorp/packer/template/interpolate"

View File

@ -1,8 +1,9 @@
package fix package fix
import ( import (
"github.com/mitchellh/mapstructure"
"strings" "strings"
"github.com/mitchellh/mapstructure"
) )
// FixerPowerShellEscapes removes the PowerShell escape character from user // FixerPowerShellEscapes removes the PowerShell escape character from user

View File

@ -1,7 +1,7 @@
// This is the main package for the `packer` application. // This is the main package for the `packer` application.
//go:generate go run ./scripts/generate-plugins.go //go:generate go run ./scripts/generate-plugins.go
//go:generate go generate ./common/boot_command/... //go:generate go generate ./common/bootcommand/...
package main package main
import ( import (

View File

@ -1,9 +1,10 @@
package vagrant package vagrant
import ( import (
"github.com/hashicorp/packer/packer"
"strings" "strings"
"testing" "testing"
"github.com/hashicorp/packer/packer"
) )
func TestGoogleProvider_impl(t *testing.T) { func TestGoogleProvider_impl(t *testing.T) {

View File

@ -3,9 +3,10 @@ package vagrant
import ( import (
"bytes" "bytes"
"fmt" "fmt"
"github.com/hashicorp/packer/packer"
"strings" "strings"
"text/template" "text/template"
"github.com/hashicorp/packer/packer"
) )
type scalewayVagrantfileTemplate struct { type scalewayVagrantfileTemplate struct {

View File

@ -1,8 +1,9 @@
package vsphere package vsphere
import ( import (
"github.com/hashicorp/packer/packer"
"testing" "testing"
"github.com/hashicorp/packer/packer"
) )
func TestArtifact_ImplementsArtifact(t *testing.T) { func TestArtifact_ImplementsArtifact(t *testing.T) {