Merge pull request #2878 from mitchellh/b-remove-push-m

Deprecate push -m
This commit is contained in:
Chris Bednarski 2016-01-14 17:18:27 -08:00
commit d61871c71b
2 changed files with 5 additions and 8 deletions

View File

@ -53,6 +53,10 @@ func (c *PushCommand) Run(args []string) int {
return 1
}
if message != "" {
c.Ui.Warn("[DEPRECATED] -m/-message is deprecated and will be removed in a future Packer release")
}
args = f.Args()
if len(args) != 1 {
f.Usage()
@ -268,9 +272,6 @@ Usage: packer push [options] TEMPLATE
Options:
-m, -message=<detail> A message to identify the purpose or changes in this
Packer template much like a VCS commit message
-name=<name> The destination build in Atlas. This is in a format
"username/name".

View File

@ -34,10 +34,6 @@ configuration using the options below.
## Options
- `-message` - A message to identify the purpose or changes in this Packer
template much like a VCS commit message. This message will be passed to the
Packer build service. This option is also available as a short option `-m`.
- `-token` - Your access token for the Atlas API.
-&gt; Login to Atlas to [generate an Atlas
@ -59,7 +55,7 @@ you can also use `-token` on the command line.
Push a Packer template:
``` {.shell}
$ packer push -m "Updating the apache version" template.json
$ packer push template.json
```
Push a Packer template with a custom token: