command/inspect: output the description if we have it

This commit is contained in:
Mitchell Hashimoto 2013-12-11 13:48:18 -08:00
parent 71385c8f01
commit 6a141ba552
1 changed files with 6 additions and 0 deletions

View File

@ -43,6 +43,12 @@ func (c Command) Run(env packer.Environment, args []string) int {
// Convenience...
ui := env.Ui()
// Description
if tpl.Description != "" {
ui.Say("Description:\n")
ui.Say(tpl.Description+"\n")
}
// Variables
if len(tpl.Variables) == 0 {
ui.Say("Variables:\n")