packer: machine readable output for available commands
This commit is contained in:
parent
d4d58e3779
commit
1bf2bade7d
|
@ -293,6 +293,9 @@ func (e *coreEnvironment) printHelp() {
|
||||||
synopsis = command.Synopsis()
|
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
|
// Pad the key with spaces so that they're all the same width
|
||||||
key = fmt.Sprintf("%v%v", key, strings.Repeat(" ", maxKeyLen-len(key)))
|
key = fmt.Sprintf("%v%v", key, strings.Repeat(" ", maxKeyLen-len(key)))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue