Default config file location: ~/.opencodereview/config.json
()
| 89 | |
| 90 | // Default config file location: ~/.opencodereview/config.json |
| 91 | func defaultConfigPath() (string, error) { |
| 92 | home, err := os.UserHomeDir() |
| 93 | if err != nil { |
| 94 | return "", fmt.Errorf("cannot determine home directory: %w", err) |
| 95 | } |
| 96 | return filepath.Join(home, ".opencodereview", "config.json"), nil |
| 97 | } |
| 98 | |
| 99 | // resolveConfigPath returns OCR_CONFIG_PATH when set, otherwise the default user config path. |
| 100 | // Intentionally used only by read-only commands (e.g. ocr llm test). Write paths such as |
no outgoing calls