()
| 42 | } |
| 43 | |
| 44 | func integrateVSCodeCmd() *cobra.Command { |
| 45 | flags := integrateCmdFlags{} |
| 46 | command := &cobra.Command{ |
| 47 | Use: "vscode", |
| 48 | Hidden: true, |
| 49 | Short: "Integrate devbox environment with VSCode or other VSCode-based editors.", |
| 50 | RunE: func(cmd *cobra.Command, args []string) error { |
| 51 | return runIntegrateVSCodeCmd(cmd, flags) |
| 52 | }, |
| 53 | } |
| 54 | command.Flags().BoolVar(&flags.debugmode, "debugmode", false, "enable debug outputs to a file.") |
| 55 | command.Flags().StringVar(&flags.ideName, "ide", "code", "name of the currently open editor to reopen after it's closed.") |
| 56 | flags.config.register(command) |
| 57 | |
| 58 | return command |
| 59 | } |
| 60 | |
| 61 | type parentMessage struct { |
| 62 | ConfigDir string `json:"configDir"` |
no test coverage detected