()
| 67 | } |
| 68 | |
| 69 | func (wpf *workspaceParameterFlags) cliParameters() []serpent.Option { |
| 70 | return serpent.OptionSet{ |
| 71 | serpent.Option{ |
| 72 | Flag: "parameter", |
| 73 | Env: "CODER_RICH_PARAMETER", |
| 74 | Description: `Rich parameter value in the format "name=value".`, |
| 75 | Value: serpent.StringArrayOf(&wpf.richParameters), |
| 76 | }, |
| 77 | serpent.Option{ |
| 78 | Flag: "rich-parameter-file", |
| 79 | Env: "CODER_RICH_PARAMETER_FILE", |
| 80 | Description: "Specify a file path with values for rich parameters defined in the template. The file should be in YAML format, containing key-value pairs for the parameters.", |
| 81 | Value: serpent.StringOf(&wpf.richParameterFile), |
| 82 | }, |
| 83 | } |
| 84 | } |
| 85 | |
| 86 | func (wpf *workspaceParameterFlags) cliParameterDefaults() []serpent.Option { |
| 87 | return serpent.OptionSet{ |
no outgoing calls
no test coverage detected