Add CLI flags to override app name and description#101
Add CLI flags to override app name and description#101jaredneedell wants to merge 1 commit intoConductorOne:mainfrom
Conversation
Add CLI flags to override app name and description Add --app-name and --app-description flags to allow overriding app_name and app_description from the config file without modifying the YAML configuration.
WalkthroughTwo files extended the configuration system: Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (2)
🧰 Additional context used📓 Path-based instructions (1)**/*.go📄 CodeRabbit inference engine (CLAUDE.md)
Files:
🧬 Code graph analysis (1)pkg/connector/connector.go (2)
🔇 Additional comments (8)
Comment |
|
why not set the app name and description in the config file? |
|
@laurenleach I want to be able to set variables to the app name in a script I am running multiple connectors with. |
|
If the config files are identical except for the app name, wouldn't they sync identical data from the same DB, just with a different name? |
|
Would using environment variables be OK? Because if so, #111 could be a general solution to allow setting more than just the app name & description. You could have a config like: app_name: "${APP_NAME}"
app_description: "${APP_DESCRIPTION}"and run the connector with |
Add CLI flags to override app name and description
Add --app-name and --app-description flags to allow overriding app_name
and app_description from the config file without modifying the YAML
configuration.
Description
Usage
baton-sql --config-path config.yml --app-name "My Custom App" --app-description "Custom description"Or via environment variables:h
BATON_APP_NAME="My Custom App" BATON_APP_DESCRIPTION="Custom description" baton-sql --config-path config.yml#### Useful links:
Or via environment variables:
BATON_APP_NAME="My Custom App" BATON_APP_DESCRIPTION="Custom description" baton-sql --config-path config.yml
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.