command/inspect: output the description if we have it
This commit is contained in:
parent
71385c8f01
commit
6a141ba552
|
@ -43,6 +43,12 @@ func (c Command) Run(env packer.Environment, args []string) int {
|
||||||
// Convenience...
|
// Convenience...
|
||||||
ui := env.Ui()
|
ui := env.Ui()
|
||||||
|
|
||||||
|
// Description
|
||||||
|
if tpl.Description != "" {
|
||||||
|
ui.Say("Description:\n")
|
||||||
|
ui.Say(tpl.Description+"\n")
|
||||||
|
}
|
||||||
|
|
||||||
// Variables
|
// Variables
|
||||||
if len(tpl.Variables) == 0 {
|
if len(tpl.Variables) == 0 {
|
||||||
ui.Say("Variables:\n")
|
ui.Say("Variables:\n")
|
||||||
|
|
Loading…
Reference in New Issue