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

Function pathArg

internal/boxcli/args.go:14–24  ·  view source on GitHub ↗

Functions that help parse arguments

(args []string)

Source from the content-addressed store, hash-verified

12// Functions that help parse arguments
13
14func pathArg(args []string) string {
15 if len(args) > 0 {
16 p, err := filepath.Abs(args[0])
17 if err != nil {
18 // Can occur when the current working directory cannot be determined.
19 panic(errors.WithStack(err))
20 }
21 return p
22 }
23 return ""
24}

Callers 3

initCmdFunction · 0.85
runInitCmdFunction · 0.85
handlePathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected