Commit 8e0c7ace authored by Seth Vargo's avatar Seth Vargo

Add a -message option to pushes

parent 5d37c584
...@@ -33,10 +33,12 @@ type pushUploadFn func( ...@@ -33,10 +33,12 @@ type pushUploadFn func(
func (c *PushCommand) Run(args []string) int { func (c *PushCommand) Run(args []string) int {
var token string var token string
var message string
f := flag.NewFlagSet("push", flag.ContinueOnError) f := flag.NewFlagSet("push", flag.ContinueOnError)
f.Usage = func() { c.Ui.Error(c.Help()) } f.Usage = func() { c.Ui.Error(c.Help()) }
f.StringVar(&token, "token", "", "token") f.StringVar(&token, "token", "", "token")
f.StringVar(&message, "message", "", "message")
if err := f.Parse(args); err != nil { if err := f.Parse(args); err != nil {
return 1 return 1
} }
...@@ -222,8 +224,10 @@ Usage: packer push [options] TEMPLATE ...@@ -222,8 +224,10 @@ Usage: packer push [options] TEMPLATE
Options: Options:
-token=<token> Access token to use to upload. If blank, the -message=<detail> A message to identify the purpose or changes in this
ATLAS_TOKEN environmental variable will be used. Packer template much like a VCS commit message
-token=<token> The access token to use to when uploading
` `
return strings.TrimSpace(helpText) return strings.TrimSpace(helpText)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment