Skip to content

Add NOTTE_CONFIG_DIR override for config path#18

Merged
giordano-lucas merged 1 commit intomainfrom
feature/config-dir-env
Mar 20, 2026
Merged

Add NOTTE_CONFIG_DIR override for config path#18
giordano-lucas merged 1 commit intomainfrom
feature/config-dir-env

Conversation

@giordano-lucas
Copy link
Member

Summary

  • Add support for NOTTE_CONFIG_DIR to override the base config directory path.
  • Keep the existing test-only config directory override taking precedence over the environment variable.
  • Add tests covering both the env override path and the default home-directory fallback.

Testing

  • Not run (not requested).
  • Existing unit tests updated in internal/config/config_test.go to verify Dir() behavior for both override and default cases.

@greptile-apps
Copy link

greptile-apps bot commented Mar 20, 2026

Greptile encountered an error while reviewing this PR. Please reach out to support@greptile.com for assistance.

- Read `NOTTE_CONFIG_DIR` before falling back to the home directory
- Add tests for the override and default home-based path
@giordano-lucas giordano-lucas force-pushed the feature/config-dir-env branch from 94bf991 to c488854 Compare March 20, 2026 13:54
@giordano-lucas
Copy link
Member Author

@greptile

@giordano-lucas giordano-lucas merged commit 0f80dc1 into main Mar 20, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant