MCPcopy
hub / github.com/cli/cli / NewCmdCodespace

Function NewCmdCodespace

pkg/cmd/codespace/root.go:18–50  ·  view source on GitHub ↗
(f *cmdutil.Factory)

Source from the content-addressed store, hash-verified

16}
17
18func NewCmdCodespace(f *cmdutil.Factory) *cobra.Command {
19 root := &cobra.Command{
20 Use: "codespace",
21 Short: "Connect to and manage codespaces",
22 Aliases: []string{"cs"},
23 GroupID: "core",
24 }
25
26 app := NewApp(
27 f.IOStreams,
28 &ghExecutable{executablePath: f.ExecutablePath},
29 codespacesAPI.New(f),
30 f.Browser,
31 f.Remotes,
32 )
33
34 root.AddCommand(newCodeCmd(app))
35 root.AddCommand(newCreateCmd(app))
36 root.AddCommand(newEditCmd(app))
37 root.AddCommand(newDeleteCmd(app))
38 root.AddCommand(newJupyterCmd(app))
39 root.AddCommand(newListCmd(app))
40 root.AddCommand(newViewCmd(app))
41 root.AddCommand(newLogsCmd(app))
42 root.AddCommand(newPortsCmd(app))
43 root.AddCommand(newSSHCmd(app))
44 root.AddCommand(newCpCmd(app))
45 root.AddCommand(newStopCmd(app))
46 root.AddCommand(newSelectCmd(app))
47 root.AddCommand(newRebuildCmd(app))
48
49 return root
50}

Callers

nothing calls this directly

Calls 15

NewAppFunction · 0.85
newCodeCmdFunction · 0.85
newCreateCmdFunction · 0.85
newEditCmdFunction · 0.85
newDeleteCmdFunction · 0.85
newJupyterCmdFunction · 0.85
newListCmdFunction · 0.85
newViewCmdFunction · 0.85
newLogsCmdFunction · 0.85
newPortsCmdFunction · 0.85
newSSHCmdFunction · 0.85
newCpCmdFunction · 0.85

Tested by

no test coverage detected