(err error)
| 113 | } |
| 114 | |
| 115 | func 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 | |
| 124 | func absolutizeIfLocal(path string) (string, error) { |
| 125 | if _, err := os.Stat(path); err == nil { |