()
| 179 | } |
| 180 | |
| 181 | func authFilePath() (string, error) { |
| 182 | if filePath := os.Getenv(envAuthFile); filePath != "" { |
| 183 | return homedir.Expand(filePath) |
| 184 | } |
| 185 | |
| 186 | dir, err := homedir.Dir() |
| 187 | if err != nil { |
| 188 | return "", err |
| 189 | } |
| 190 | return filepath.Join(dir, ".config", "dbxcli", configFileName), nil |
| 191 | } |
| 192 | |
| 193 | func authFileKind() string { |
| 194 | if os.Getenv(envAuthFile) != "" { |
no outgoing calls