| 77 | } |
| 78 | |
| 79 | func (*ConsoleCommand) Help() string { |
| 80 | helpText := ` |
| 81 | Usage: 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 | |
| 88 | Options: |
| 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 | |
| 98 | func (*ConsoleCommand) Synopsis() string { |
| 99 | return "creates a console for testing variable interpolation" |