Repository navigation
feat: cli: add autostart and autostop commands - #922
Conversation
Codecov Report
@@ Coverage Diff @@
## main #922 +/- ##
==========================================
+ Coverage 65.78% 65.82% +0.04%
==========================================
Files 226 228 +2
Lines 13991 14119 +128
Branches 105 105
==========================================
+ Hits 9204 9294 +90
- Misses 3848 3876 +28
- Partials 939 949 +10
Continue to review full report at Codecov.
|
kylecarbs
left a comment
There was a problem hiding this comment.
Great code, tests, and decomposition! 'tis coming together nicely.
Should we hide these commands for now? I know a bunch of the commands don't work properly right now, but I'd hate to add even more to that list (by work properly I mean that since we don't have scheduling in yet, this wouldn't quite work).
|
|
||
| func workspaceAutostart() *cobra.Command { | ||
| autostartCmd := &cobra.Command{ | ||
| Use: "autostart", |
There was a problem hiding this comment.
We should add a description of the autostart feature. Doesn't have to be exhaustive for now, just something that speaks to the use-case a bit.
|
|
||
| func workspaceAutostop() *cobra.Command { | ||
| autostopCmd := &cobra.Command{ | ||
| Use: "autostop", |
There was a problem hiding this comment.
A little helper text would be great here! Same comment on autostart.
greyscaled
left a comment
There was a problem hiding this comment.
This code is squeaky clean!
Ah yeah, good call. |
This PR adds the CLI commands
autostartandautostop.These allow enabling and disabling workspace autostart and autostop, respectively.
Example usage:
Subtasks