(f *cmdutil.Factory)
| 16 | } |
| 17 | |
| 18 | func 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 | } |
nothing calls this directly
no test coverage detected