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

Method sharing

cli/sharing.go:18–35  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16const defaultGroupDisplay = "-"
17
18func (r *RootCmd) sharing() *serpent.Command {
19 cmd := &serpent.Command{
20 Use: "sharing [subcommand]",
21 Short: "Commands for managing shared workspaces",
22 Aliases: []string{"share"},
23 Handler: func(inv *serpent.Invocation) error {
24 return inv.Command.HelpHandler(inv)
25 },
26 Children: []*serpent.Command{
27 r.shareWorkspace(),
28 r.unshareWorkspace(),
29 r.statusWorkspaceSharing(),
30 },
31 Hidden: true,
32 }
33
34 return cmd
35}
36
37func (r *RootCmd) statusWorkspaceSharing() *serpent.Command {
38 cmd := &serpent.Command{

Callers 1

CoreSubcommandsMethod · 0.95

Calls 3

shareWorkspaceMethod · 0.95
unshareWorkspaceMethod · 0.95

Tested by

no test coverage detected