Dean Sheather
d60ec3e4bf
feat: add JSON output format to many CLI commands ( #6082 )
2023-02-08 17:09:38 +00:00
Marcin Tojek
1dc477819e
feat: render Markdown in rich parameter descriptions ( #6098 )
2023-02-08 12:57:12 +01:00
Marcin Tojek
b86bce8494
feat!: Validate monotonic numbers for rich parameters ( #6046 )
...
* Database changes
* protobuf
* Fix: docs
* workspaces_test
* Validation in coderd
* Fix: resources
* omitempty
* UI changes
* UI tests
* fix
2023-02-07 09:36:13 +01:00
Mathias Fredriksson
981cac5e28
chore: Invert delay_login_until_ready, now login_before_ready ( #5893 )
2023-01-27 20:07:47 +00:00
Mathias Fredriksson
a753703e47
feat(cli): Add support for delay_login_until_ready ( #5851 )
2023-01-27 19:05:40 +02:00
Marcin Tojek
26c69525d1
feat: Validate workspace build parameters ( #5807 )
2023-01-24 14:22:00 +01:00
Marcin Tojek
bbb208e29c
feat: Add CLI support for workspace build parameters ( #5768 )
...
* WIP
* WIP
* CLI: handle workspace build parameters
* fix: golintci
* Fix: dry run
* fix
* CLI: is mutable
* coderd: mutable
* fix: golanci
* fix: richParameterFile
* CLI: create unit tests
* CLI: update test
* Fix
* fix: order
* fix
2023-01-23 15:01:22 +01:00
Mathias Fredriksson
c1ecc91aab
feat: Add fallback troubleshooting URL for coder agents ( #5005 )
2022-11-16 12:53:02 +02:00
Mathias Fredriksson
4b3d211e00
fix: Use UTC in cli/cliui table test to match expected output ( #5063 )
2022-11-14 15:08:51 +02:00
Mathias Fredriksson
5fb9c33ecd
fix: Fix ssh message/spinner in VSCode integrated terminal ( #5000 )
...
* fix: Fix ssh message/spinner in VSCode integrated terminal
The messages never show up in VSCode integrated terminal due to the
defer `fmt.Fprintf`. There could be a race in VSCode in handling the
terminal codes but ultimately, we can simplify our logic by just
stopping the spinner for the duration of the update.
* Avoid race in starting spinner after exit
2022-11-10 18:21:38 +00:00
Mathias Fredriksson
0eed533b17
fix: Improve agent waiting/timeout message behavior in ssh ( #4999 )
2022-11-10 15:41:23 +00:00
Mathias Fredriksson
90c34b74de
feat: Add connection_timeout and troubleshooting_url to agent ( #4937 )
...
* feat: Add connection_timeout and troubleshooting_url to agent
This commit adds the connection timeout and troubleshooting url fields
to coder agents.
If an initial connection cannot be established within connection timeout
seconds, then the agent status will be marked as `"timeout"`.
The troubleshooting URL will be present, if configured in the Terraform
template, it can be presented to the user when the agent state is either
`"timeout"` or `"disconnected"`.
Fixes #4678
2022-11-09 17:27:05 +02:00
Kyle Carberry
30281852d6
feat: Add buffering to provisioner job logs ( #4918 )
...
* feat: Add bufferring to provisioner job logs
This should improve overall build performance, and especially under load.
It removes the old `id` column on the `provisioner_job_logs` table
and replaces it with an auto-incrementing big integer to preserve order.
Funny enough, we never had to care about order before because inserts
would at minimum be 1ms different. Now they aren't, so the order needs
to be preserved.
* Fix log bufferring
* Fix frontend log streaming
* Fix JS test
2022-11-06 20:50:34 -06:00
sonnysasaka
7d831e31c6
fix: Line gets erased due to updateJob ( #4740 )
...
The first updateJob should be called after the first printStage to
guarantee that only stage prints can get erased and overwritten,
otherwise there could be an unrelated line that gets erased.
fixes #3967
2022-10-25 10:27:44 -05:00
Dean Sheather
d0fb054a55
fix: improve codersdk error messages when not JSON ( #4495 )
2022-10-21 23:36:31 +00:00
Kyle Carberry
3049a56355
fix: Use the maximum number of users for a license warning ( #4410 )
...
This was causing a banner on dev.coder.com. But now we have a test!
2022-10-06 20:59:25 -05:00
Garrett Delfosse
f5df54831a
feat: tokens ( #4380 )
2022-10-06 19:02:27 +00:00
Cian Johnston
e6f568fcac
refactor: cli: address comments from #4240 ( #4259 )
2022-09-29 11:04:37 +01:00
Ali Diamond
0c75ea6286
feat: coder ls should show possible columns to filter by ( #4240 )
...
* added showing columns in help call, need to format to make pretty
* finished formatting column strings for print of list /ls command
Co-authored-by: Ali Diamond <user@ali.dev >
2022-09-28 16:39:44 -04:00
Kyle Carberry
a7ee8b31e0
fix: Don't use StatusAbnormalClosure ( #4155 )
2022-09-22 18:26:05 +00:00
Kyle Carberry
6f82ad09c8
fix: Improve consistency on CLI help ( #4112 )
...
This makes the english consistent on flags, and improves
the contrast for the placeholder color on dark themes.
2022-09-19 11:36:18 -05:00
Cian Johnston
5362f4636e
feat: show agent version in UI and CLI ( #3709 )
...
This commit adds the ability for agents to set their version upon start.
This is then reported in the UI and CLI.
2022-08-31 16:33:50 +01:00
Kyle Carberry
706bceb7e7
fix: Remove reference to coder rebuild command ( #3670 )
...
Closes #2464 .
2022-08-24 15:35:46 +00:00
Dean Sheather
3610402cd8
Use new table formatter everywhere ( #3544 )
2022-08-19 02:41:00 +10:00
Spike Curtis
acd0cd66f6
coder features list CLI command ( #3533 )
...
* AGPL Entitlements API
Signed-off-by: Spike Curtis <spike@coder.com >
* Generate typesGenerated.ts
Signed-off-by: Spike Curtis <spike@coder.com >
* AllFeatures -> FeatureNames
Signed-off-by: Spike Curtis <spike@coder.com >
* Features CLI command
Signed-off-by: Spike Curtis <spike@coder.com >
* Validate columns
Signed-off-by: Spike Curtis <spike@coder.com >
* Tests for features list CLI command
Signed-off-by: Spike Curtis <spike@coder.com >
* Drop empty EntitlementsRequest
Signed-off-by: Spike Curtis <spike@coder.com >
* Fix dump.sql generation
Signed-off-by: Spike Curtis <spike@coder.com >
Signed-off-by: Spike Curtis <spike@coder.com >
2022-08-17 11:26:16 -07:00
Dean Sheather
a872330a8d
feat: add generic table formatter ( #3415 )
2022-08-18 02:28:22 +10:00
Ammar Bandukwala
19fcf60864
ci: add typo detection ( #3327 )
...
And fix them.
2022-08-01 09:29:52 -04:00
Mathias Fredriksson
4730c589fe
chore: Use standardized test timeouts and delays ( #3291 )
2022-08-01 15:45:05 +03:00
Noah Huppert
16f0f1a2db
3293, cli: Updated Placeholder color to have a dark theme alt ( #3294 )
...
Co-authored-by: Ubuntu <ubuntu@ip-172-31-1-230.us-east-2.compute.internal >
2022-07-31 13:44:05 -05:00
Mathias Fredriksson
4d53934eb0
fix: (Re-)enable TestPasswordTerminalState test ( #3169 )
2022-07-25 18:42:20 +03:00
Mathias Fredriksson
233aa17848
fix: Avoid dirtying stdout/stderr in test ( #3165 )
...
* fix: Default all clitest commands to io.Discard stdout/err
* fix: Never write to stdout or stderr in tests
2022-07-25 16:55:53 +03:00
Abhineet Jain
61c52b3090
feat: default confirm to no for cli delete ( #2919 )
2022-07-12 10:36:07 -07:00
Ketan Gangatirkar
5eecbaa534
fix: trim leading and trailing spaces from template parameters ( #2829 ) ( #2879 )
2022-07-11 11:46:03 -05:00
Ketan Gangatirkar
2609be767d
feat: add timestamps to output at end of some workspace and template subcommands ( #2831 )
2022-07-08 14:27:56 -05:00
Cian Johnston
92bcacebde
cli/templateinit: add links to template READMEs ( #2576 )
...
- template init: add links to template docs
- examples: add URL field to examples, ensure that example fields are always non-empty
- cliui: bump wrap width to 80 from 58
2022-06-22 14:15:04 +00:00
Spike Curtis
93b1425d85
Stop showing persistent vs ephemeral for resources ( #2333 )
...
Signed-off-by: Spike Curtis <spike@coder.com >
2022-06-16 18:36:11 +00:00
David Wahler
2d7e6d6530
disable TestPasswordTerminalState until we can make it run reliably ( #2409 )
2022-06-16 10:18:07 -05:00
Dean Sheather
6be8a373e0
feat: run a terraform plan before creating workspaces with the given template parameters ( #1732 )
2022-06-02 00:44:53 +10:00
Cian Johnston
c2f74f3cc2
chore: avoid concurrent usage of t.FailNow ( #1683 )
...
* chore: golangci: add linter rule to report usage of t.FailNow inside goroutines
* chore: avoid t.FailNow in goroutines to appease the race detector
2022-05-24 08:58:39 +01:00
Steven Masley
ad946c3902
feat: Add confirm prompts to some cli actions ( #1591 )
...
* feat: Add confirm prompts to some cli actions
- Add optional -y skip. Standardize -y flag across commands
2022-05-20 15:59:04 +00:00
Steven Masley
6c1117094d
chore: Force codersdk to not import anything from database ( #1576 )
...
* chore: Force codersdk to not import anything from database (linter rule)
* chore: Move all database types in codersdk out
2022-05-19 13:04:44 -05:00
Kyle Carberry
38ee519f42
feat: Expose the values contained in an HCL validation string to the API ( #1587 )
...
* feat: Expose the values contained in an HCL validation string to the API
This allows the frontend to render inputs displaying these values!
* Update codersdk/parameters.go
Co-authored-by: Cian Johnston <cian@coder.com >
* Call a spade a space
* Fix linting errors with type conversion
Co-authored-by: Cian Johnston <cian@coder.com >
2022-05-19 13:29:36 +00:00
Dean Sheather
cabc164f74
feat: use and display default template values when creating wkspc. ( #1584 )
2022-05-19 22:49:40 +10:00
David Wahler
5f21a145d1
bug: Don't try to handle SIGINT when prompting for passwords ( #1498 )
2022-05-18 15:26:38 +00:00
Spike Curtis
9d94f4f714
fix: macOS backspace processing ( #1379 )
...
Revert "fix: Remove line length limit on MacOS for input prompts (#839 )"
This reverts commit ccba2ba99d .
2022-05-10 15:20:36 -07:00
Kyle Carberry
e0a7aec228
fix: Match kubectl table style for simpler scripting ( #1363 )
...
Fixes #1322 .
2022-05-10 15:57:07 -05:00
Kyle Carberry
914a2f477c
fix: Restore terminal on interrupt when connecting ( #1312 )
...
Fixes #1292 .
2022-05-05 20:11:44 -05:00
Kyle Carberry
c2b5009208
fix: Unnest workspaces command to the top-level ( #1241 )
...
This changes all "coder workspace *" commands to root.
A few of these were already at the root, like SSH. The
inconsistency made for a confusing experience.
2022-05-02 11:08:52 -05:00
Kyle Carberry
09405ddc40
test: Wait for WorkspaceResources to complete before exiting ( #1149 )
...
This caused a flake seen in:
https://github.com/coder/coder/runs/6162655678?check_suite_focus=true#step:9:87
2022-04-25 18:11:35 +00:00
Kyle Carberry
e8b310166f
fix: Remove resource addresses ( #982 )
...
These were added under the impression that there was significant
user-experience impact if multiple resources share the same name.
This hasn't proven to be true yet, so figured we'd take this out
until it becomes necessary.
2022-04-12 14:38:02 -05:00