Commit 547d1848 authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

packer: machine readable output for available commands

parent 365efae5
......@@ -293,6 +293,9 @@ func (e *coreEnvironment) printHelp() {
synopsis = command.Synopsis()
}
// Machine-readable output of the available command
e.ui.Machine("command", key, synopsis)
// Pad the key with spaces so that they're all the same width
key = fmt.Sprintf("%v%v", key, strings.Repeat(" ", maxKeyLen-len(key)))
......
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