Add a -message option to pushes
This commit is contained in:
parent
5d37c58457
commit
8e0c7ace3a
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue