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

Method cliEphemeralParameters

cli/parameter.go:37–67  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

35}
36
37func (wpf *workspaceParameterFlags) cliEphemeralParameters() []serpent.Option {
38 return serpent.OptionSet{
39 // Deprecated - replaced with ephemeral-parameter
40 {
41 Flag: "build-option",
42 Env: "CODER_BUILD_OPTION",
43 Description: `Build option value in the format "name=value".`,
44 UseInstead: []serpent.Option{{Flag: "ephemeral-parameter"}},
45 Value: serpent.StringArrayOf(&wpf.ephemeralParameters),
46 },
47 // Deprecated - replaced with prompt-ephemeral-parameters
48 {
49 Flag: "build-options",
50 Description: "Prompt for one-time build options defined with ephemeral parameters.",
51 UseInstead: []serpent.Option{{Flag: "prompt-ephemeral-parameters"}},
52 Value: serpent.BoolOf(&wpf.promptEphemeralParameters),
53 },
54 {
55 Flag: "ephemeral-parameter",
56 Env: "CODER_EPHEMERAL_PARAMETER",
57 Description: `Set the value of ephemeral parameters defined in the template. The format is "name=value".`,
58 Value: serpent.StringArrayOf(&wpf.ephemeralParameters),
59 },
60 {
61 Flag: "prompt-ephemeral-parameters",
62 Env: "CODER_PROMPT_EPHEMERAL_PARAMETERS",
63 Description: "Prompt to set values of ephemeral parameters defined in the template. If a value has been set via --ephemeral-parameter, it will not be prompted for.",
64 Value: serpent.BoolOf(&wpf.promptEphemeralParameters),
65 },
66 }
67}
68
69func (wpf *workspaceParameterFlags) cliParameters() []serpent.Option {
70 return serpent.OptionSet{

Callers 1

allOptionsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected