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

Function runInitCmd

internal/boxcli/init.go:62–78  ·  view source on GitHub ↗
(cmd *cobra.Command, args []string, flags *initFlags)

Source from the content-addressed store, hash-verified

60}
61
62func runInitCmd(cmd *cobra.Command, args []string, flags *initFlags) error {
63 path := pathArg(args)
64
65 if flags.auto {
66 if flags.dryRun {
67 config, err := autodetect.DryRun(cmd.Context(), path)
68 if err != nil {
69 return errors.WithStack(err)
70 }
71 fmt.Fprintln(cmd.OutOrStdout(), string(config))
72 return nil
73 }
74 return autodetect.InitConfig(cmd.Context(), path)
75 }
76
77 return devbox.InitConfig(path)
78}

Callers 1

initCmdFunction · 0.85

Calls 4

DryRunFunction · 0.92
InitConfigFunction · 0.92
InitConfigFunction · 0.92
pathArgFunction · 0.85

Tested by

no test coverage detected