ParthibanRajasekaran opened a new pull request, #4350: URL: https://github.com/apache/iggy/pull/4350
Implement --list-config-env-vars flag for iggy-server, iggy-connectors, and iggy-mcp. Closes #4322 ## Problem Users need a way to discover supported environment variables before loading configuration, useful for: - CI/CD pipeline automation - Configuration validation - Documentation generation - Troubleshooting configuration issues ## Solution Added --list-config-env-vars flag to all three binaries that: - Exits early (before dotenv, config loading, logging, runtimes) - Works even with missing configuration files - Outputs sorted, deduplicated IGGY_-prefixed variable names only (no values) - Writes nothing to stderr - Exits successfully with code 0 ## Implementation Details - ConfigEnv derive macro now exposes env_templates() method - Each binary calls <ConfigType>::env_templates() to collect derived variables - Manual variables (IGGY_CONFIG_PATH, IGGY_ENV_PATH, etc.) are chained in - Output is sorted and deduplicated before printing ## Testing Integration test validates: - All three binaries support the flag - Early exit with missing config/dotenv files - Clean stdout with no stderr output - Sorted and deduplicated output - Successful exit status (code 0) - All names start with IGGY_ -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
