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

Function pathCmd

internal/boxcli/path.go:16–32  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14}
15
16func pathCmd() *cobra.Command {
17 flags := pathCmdFlags{}
18 cmd := &cobra.Command{
19 Use: "path",
20 Short: "Show path to [global] devbox config",
21 PreRunE: ensureNixInstalled,
22 Args: cobra.ExactArgs(0),
23 RunE: func(cmd *cobra.Command, args []string) error {
24 fmt.Println(flags.config.path)
25 return nil
26 },
27 }
28
29 flags.config.register(cmd)
30
31 return cmd
32}

Callers 1

globalCmdFunction · 0.85

Calls 1

registerMethod · 0.45

Tested by

no test coverage detected