()
| 24 | } |
| 25 | |
| 26 | func (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. |
| 47 | func (r *RootCmd) externalWorkspaceCreate() *serpent.Command { |
no test coverage detected