From a4cb8ae41b334a6f0f086685d3be6108e444edcf Mon Sep 17 00:00:00 2001 From: Jeremy Voorhis Date: Fri, 13 Oct 2017 11:41:42 -0700 Subject: [PATCH] Define methods on *BuildCommand (consistency) --- command/build.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/command/build.go b/command/build.go index de9da51ee..b5ae3bd66 100644 --- a/command/build.go +++ b/command/build.go @@ -19,7 +19,7 @@ type BuildCommand struct { Meta } -func (c BuildCommand) Run(args []string) int { +func (c *BuildCommand) Run(args []string) int { var cfgColor, cfgDebug, cfgForce, cfgParallel bool var cfgOnError string flags := c.Meta.FlagSet("build", FlagSetBuildFilter|FlagSetVars) @@ -279,7 +279,7 @@ func (c BuildCommand) Run(args []string) int { return 0 } -func (BuildCommand) Help() string { +func (*BuildCommand) Help() string { helpText := ` Usage: packer build [options] TEMPLATE @@ -303,6 +303,6 @@ Options: return strings.TrimSpace(helpText) } -func (BuildCommand) Synopsis() string { +func (*BuildCommand) Synopsis() string { return "build image(s) from template" }