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

Function pullErrorPrompt

internal/boxcli/pull.go:115–122  ·  view source on GitHub ↗
(err error)

Source from the content-addressed store, hash-verified

113}
114
115func pullErrorPrompt(err error) string {
116 switch {
117 case errors.Is(err, fs.ErrExist):
118 return "Global profile already exists. Overwrite?"
119 default:
120 return ""
121 }
122}
123
124func absolutizeIfLocal(path string) (string, error) {
125 if _, err := os.Stat(path); err == nil {

Callers 1

pullCmdFuncFunction · 0.85

Calls 1

IsMethod · 0.80

Tested by

no test coverage detected