MCPcopy Index your code
hub / github.com/coder/coder / externalWorkspaces

Method externalWorkspaces

enterprise/cli/externalworkspaces.go:26–44  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

24}
25
26func (r *RootCmd) externalWorkspaces() *serpent.Command {
27 orgContext := agpl.NewOrganizationContext()
28
29 cmd := &serpent.Command{
30 Use: "external-workspaces [subcommand]",
31 Short: "Create or manage external workspaces",
32 Handler: func(inv *serpent.Invocation) error {
33 return inv.Command.HelpHandler(inv)
34 },
35 Children: []*serpent.Command{
36 r.externalWorkspaceCreate(),
37 r.externalWorkspaceAgentInstructions(),
38 r.externalWorkspaceList(),
39 },
40 }
41
42 orgContext.AttachOptions(cmd)
43 return cmd
44}
45
46// externalWorkspaceCreate extends `coder create` to create an external workspace.
47func (r *RootCmd) externalWorkspaceCreate() *serpent.Command {

Callers 1

enterpriseOnlyMethod · 0.95

Calls 4

externalWorkspaceListMethod · 0.95
AttachOptionsMethod · 0.95

Tested by

no test coverage detected