ResolveConfigPath resolves the configuration file path.
(flagPath string)
| 507 | |
| 508 | // ResolveConfigPath resolves the configuration file path. |
| 509 | func ResolveConfigPath(flagPath string) string { |
| 510 | if flagPath != "" { |
| 511 | return flagPath |
| 512 | } |
| 513 | |
| 514 | if path, found := config.FindDefaultConfigPath(); found { |
| 515 | return path |
| 516 | } |
| 517 | |
| 518 | return "" |
| 519 | } |
| 520 | |
| 521 | // ResolveConfigPathForWizard resolves a configuration path for the config wizard. |
| 522 | // |
no test coverage detected