()
| 43 | } |
| 44 | |
| 45 | func CacheDir() string { |
| 46 | if h := os.Getenv(envvar.CacheHome); h != "" { |
| 47 | return h |
| 48 | } |
| 49 | |
| 50 | dir, err := os.UserCacheDir() |
| 51 | if err != nil { |
| 52 | // fall back to relative path with hidden directory |
| 53 | return ".helmfile" |
| 54 | } |
| 55 | return filepath.Join(dir, "helmfile") |
| 56 | } |
| 57 | |
| 58 | type Remote struct { |
| 59 | Logger *zap.SugaredLogger |
no outgoing calls