Read configuration file from config path
()
| 133 | |
| 134 | // Read configuration file from config path |
| 135 | func readFromConfigDir() error { |
| 136 | path, err := DefaultConfigPath() |
| 137 | if err != nil { |
| 138 | return err |
| 139 | } |
| 140 | return readConfig(path) |
| 141 | } |
| 142 | |
| 143 | // DefaultConfigPath returns the default user config file path. |
| 144 | func DefaultConfigPath() (string, error) { |
no test coverage detected