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(
func (c *PushCommand) Run(args []string) int {
var token string
var message string
f := flag.NewFlagSet("push", flag.ContinueOnError)
f.Usage = func() { c.Ui.Error(c.Help()) }
f.StringVar(&token, "token", "", "token")
f.StringVar(&message, "message", "", "message")
if err := f.Parse(args); err != nil {
return 1
}
......@@ -222,8 +224,10 @@ Usage: packer push [options] TEMPLATE
Options:
-token=<token> Access token to use to upload. If blank, the
ATLAS_TOKEN environmental variable will be used.
-message=<detail> A message to identify the purpose or changes in this
Packer template much like a VCS commit message
-token=<token> The access token to use to when uploading
`
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