d779126ee3
chore: rollback PR #18081 ( #18104 )
...
Rollback https://github.com/coder/coder/pull/18081
2025-05-29 13:12:13 -03:00
2ec7404197
chore: make owner_name and owner_username consistent ( #18081 )
...
We've been using owner_name inconsistently as username. So this PR fixes
it by making the attribute naming more consistent.
2025-05-28 17:25:32 -03:00
91875c2b47
fix: allow users to extend their running workspace's deadline ( #15895 )
...
Fixes https://github.com/coder/coder/issues/15515
This change effectively reverts the changes introduced by
https://github.com/coder/coder/pull/13182 (for
https://github.com/coder/coder/issues/13078 ).
We also rename the `override-stop` command name to `extend` to match the
API endpoint's name (keeping an alias to allow `override-stop` to be used).
2024-12-18 10:58:33 +00:00
0a86d6d176
chore: expose formatExamples enterprise commands ( #13304 )
...
Exporting it allows enterprise functions to also use it.
2024-05-21 13:26:34 -05:00
b4c0fa80d8
chore(cli): rename Cmd to Command ( #12616 )
...
I think Command is cleaner and my original decision to use "Cmd"
a mistake.
Plus this creates better parity with cobra.
2024-03-17 09:45:26 -05:00
496232446d
chore(cli): replace clibase with external coder/serpent
( #12252 )
2024-03-15 11:24:38 -05:00
a4f1319108
feat(cli): allow showing schedules for multiple workspaces ( #10596 )
...
* coder list: adds information about next start / stop to available columns (not default)
* coder schedule: show now essentially coder list with a different set of columns
* Updates cli schedule unit tests to use new dbfake
Co-authored-by: Mathias Fredriksson <mafredri@gmail.com >
2023-11-10 13:51:49 +00:00
ad23d33f28
refactor(coderd/schedule): move cron schedule to cron package ( #9507 )
...
This removes an indirect import of `coderd/database` from the CLI and
results in a logical separation between server related and generalized
schedule.
No size change (yet).
Ref: #9380
2023-09-04 16:48:25 +03:00
22e781eced
chore: add /v2 to import module path ( #9072 )
...
* chore: add /v2 to import module path
go mod requires semantic versioning with versions greater than 1.x
This was a mechanical update by running:
```
go install github.com/marwan-at-work/mod/cmd/mod@latest
mod upgrade
```
Migrate generated files to import /v2
* Fix gen
2023-08-18 18:55:43 +00:00
2bd6d2908e
feat: convert entire CLI to clibase ( #6491 )
...
I'm sorry.
2023-03-23 17:42:20 -05:00
66a6b590a1
feat: add template max_ttl ( #6114 )
...
Co-authored-by: Bruno Quaresma <bruno@coder.com >
2023-03-07 14:14:58 +00:00
a89d6909b2
fix: show help on wraper commands ( #4402 )
2022-10-06 20:15:28 +00:00
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
78a24941fe
feat: Add codersdk.NullTime
, change workspace build deadline ( #3552 )
...
Fixes #2015
Co-authored-by: Joe Previte <jjprevite@gmail.com >
2022-08-25 19:10:42 +03:00
184f0625e1
coder licenses add CLI command ( #3632 )
...
* coder licenses add CLI command
Signed-off-by: Spike Curtis <spike@coder.com >
* Fix up lint
Signed-off-by: Spike Curtis <spike@coder.com >
* Fix t.parallel call
Signed-off-by: Spike Curtis <spike@coder.com >
* Code review improvements
Signed-off-by: Spike Curtis <spike@coder.com >
* Lint
Signed-off-by: Spike Curtis <spike@coder.com >
Signed-off-by: Spike Curtis <spike@coder.com >
2022-08-23 13:55:39 -07:00
59facdd8dc
fix: Show schedule commands in help, improve template ( #2923 )
...
* fix: Show schedule commands in help, improve template
* chore: Remove schedule long help, fixed by listing missing commands
* chore: Clean up annotation usage with template function
* fix: Drive-by fix for trailing whitespace for flags
Introduced in c7681370b5
.
2022-07-12 23:24:53 +03:00
749694b7de
fix: Standardize and wrap example descriptions at 80 chars ( #2894 )
2022-07-11 19:08:09 +03:00
c9691eafcb
feat: cli: consolidate schedule-related commands ( #2402 )
...
* feat: cli: consolidate schedule-related commands
This commit makes the following changes:
- renames autostart -> schedule starat
- renames ttl -> schedule stop
- renames bump -> schedule override
- adds schedule show command
- moves some cli-related stuff to util.go
2022-06-16 18:24:10 +01:00