coder/cli/cliui
Aaron Lehmann 0e3dc2a80f
feat: influence parameter defaults through cli flag/env (#13039)
* feat: influence parameter defaults through cli flag/env

Add a --parameter-default flag / CODER_RICH_PARAMETER_DEFAULT
environment variable which overrides default values suggested for
parameters.

This allows scripts or middleware wrapping the CLI to substitute
defaults for parameter values beyond those defined at the template
level. For example, Git repository/branch parameters can be given
defaults based on the current checkout, or default parameter values can
be parsed out of files inside the repo.

* Rename defaults arg to defaultOverrides
2024-04-29 14:23:54 -04:00
..
agent.go fix: correct troubleshooting links (#12608) 2024-03-18 08:52:20 +02:00
agent_test.go chore(cli): rename Cmd to Command (#12616) 2024-03-17 09:45:26 -05:00
cliui.go perf(cli): optimize CPU consumption of help pages (#9607) 2023-09-14 19:48:29 -05:00
deprecation.go chore(cli): replace clibase with external `coder/serpent` (#12252) 2024-03-15 11:24:38 -05:00
externalauth.go feat: allow external services to be authable (#9996) 2023-10-03 14:04:39 +00:00
externalauth_test.go chore(cli): rename Cmd to Command (#12616) 2024-03-17 09:45:26 -05:00
filter.go chore(cli): rename Cmd to Command (#12616) 2024-03-17 09:45:26 -05:00
log.go chore(cli): replace lipgloss with coder/pretty (#9564) 2023-09-07 16:28:22 -05:00
output.go chore(cli): replace clibase with external `coder/serpent` (#12252) 2024-03-15 11:24:38 -05:00
output_test.go chore(cli): rename Cmd to Command (#12616) 2024-03-17 09:45:26 -05:00
parameter.go feat: influence parameter defaults through cli flag/env (#13039) 2024-04-29 14:23:54 -04:00
prompt.go chore(cli): replace clibase with external `coder/serpent` (#12252) 2024-03-15 11:24:38 -05:00
prompt_test.go chore(cli): rename Cmd to Command (#12616) 2024-03-17 09:45:26 -05:00
provisionerjob.go feat(cli): show queue position during workspace builds (#12606) 2024-03-18 12:05:05 +02:00
provisionerjob_test.go feat(coderd): add enabled experiments to telemetry (#12656) 2024-03-19 11:05:29 +02:00
resources.go chore(cli): replace lipgloss with coder/pretty (#9564) 2023-09-07 16:28:22 -05:00
resources_internal_test.go perf(cli): optimize CPU consumption of help pages (#9607) 2023-09-14 19:48:29 -05:00
resources_test.go refactor(coderd/database): split `Time` and `Now` into `dbtime` package (#9482) 2023-09-01 16:50:12 +00:00
select.go chore(cli): replace clibase with external `coder/serpent` (#12252) 2024-03-15 11:24:38 -05:00
select_test.go chore(cli): rename Cmd to Command (#12616) 2024-03-17 09:45:26 -05:00
table.go chore: remove organization requirement from convertGroup() (#12195) 2024-02-21 15:58:11 -06:00
table_test.go chore: remove organization requirement from convertGroup() (#12195) 2024-02-21 15:58:11 -06:00