-
Notifications
You must be signed in to change notification settings - Fork 963
feat(cli): add enterprise external-workspaces CLI command #19287
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: kacpersaw/feat-coder-attach-api
Are you sure you want to change the base?
feat(cli): add enterprise external-workspaces CLI command #19287
Conversation
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
1d9ad42
to
2b42673
Compare
b641ffe
to
07a9c42
Compare
039892b
to
e1fd6e8
Compare
60cccc2
to
0cf5381
Compare
e1fd6e8
to
e7e9376
Compare
@@ -29,7 +29,12 @@ const PresetNone = "none" | |||
|
|||
var ErrNoPresetFound = xerrors.New("no preset found") | |||
|
|||
func (r *RootCmd) create() *serpent.Command { | |||
type CreateOptions struct { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe you should put a comment here explaining what these are for. E.g. "CreateOptions provides middleware for the workspace creation command so it can be extended for other create commands."
enterprise/cli/externalworkspaces.go
Outdated
} | ||
|
||
var hasExternalAgent bool | ||
for _, resource := range resources { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not just use the flag? Is it not returned by the API?
enterprise/cli/externalworkspaces.go
Outdated
WorkspaceName string `json:"-"` | ||
AgentName string `json:"-"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In JSON output mode I imagine these fields could be useful
d36771a
to
cec9a8d
Compare
4e94ed6
to
5a0bf15
Compare
ac11687
to
515fd53
Compare
5a0bf15
to
ed93d09
Compare
515fd53
to
ce5c3e0
Compare
ce5c3e0
to
d5f8141
Compare
This pull request introduces support for external workspace management, allowing users to register and manage workspaces that are provisioned and managed outside of the Coder.