MCPcopy Index your code
hub / github.com/jetify-com/devbox / devcontainerCmd

Function devcontainerCmd

internal/boxcli/generate.go:81–97  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

79}
80
81func devcontainerCmd() *cobra.Command {
82 flags := &generateCmdFlags{}
83 command := &cobra.Command{
84 Use: "devcontainer",
85 Short: "Generate Dockerfile and devcontainer.json files under .devcontainer/ directory",
86 Long: "Generate Dockerfile and devcontainer.json files necessary to run VSCode in remote container environments.",
87 Args: cobra.MaximumNArgs(0),
88 RunE: func(cmd *cobra.Command, args []string) error {
89 return runGenerateCmd(cmd, flags)
90 },
91 }
92 command.Flags().BoolVarP(
93 &flags.force, "force", "f", false, "force overwrite on existing files")
94 command.Flags().BoolVar(
95 &flags.rootUser, "root-user", false, "Use root as default user inside the container")
96 return command
97}
98
99func dockerfileCmd() *cobra.Command {
100 flags := &generateDockerfileCmdFlags{}

Callers 1

generateCmdFunction · 0.85

Calls 1

runGenerateCmdFunction · 0.85

Tested by

no test coverage detected