MCPcopy
hub / github.com/hashicorp/packer / Help

Method Help

command/console.go:79–96  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

77}
78
79func (*ConsoleCommand) Help() string {
80 helpText := `
81Usage: packer console [options] [TEMPLATE]
82
83 Creates a console for testing variable interpolation.
84 If a template is provided, this command will load the template and any
85 variables defined therein into its context to be referenced during
86 interpolation.
87
88Options:
89 -var 'key=value' Variable for templates, can be used multiple times.
90 -var-file=path JSON or HCL2 file containing user variables.
91 -config-type Set to 'hcl2' to run in HCL2 mode when no file is passed. Defaults to json.
92 -use-sequential-evaluation Fallback to using a sequential approach for local/datasource evaluation.
93`
94
95 return strings.TrimSpace(helpText)
96}
97
98func (*ConsoleCommand) Synopsis() string {
99 return "creates a console for testing variable interpolation"

Callers 1

ParseArgsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected