MCPcopy Index your code
hub / github.com/coder/coder / cliParameters

Method cliParameters

cli/parameter.go:69–84  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

67}
68
69func (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
86func (wpf *workspaceParameterFlags) cliParameterDefaults() []serpent.Option {
87 return serpent.OptionSet{

Callers 4

allOptionsMethod · 0.95
scaletestAutostartMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected