-
Notifications
You must be signed in to change notification settings - Fork 12
feat(ensrainbow): refine handling of env vars #367
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
feat(ensrainbow): refine handling of env vars #367
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
| logger.info(`Removing database directory at ${dataDir}...`); | ||
| await rm(dataDir, { recursive: true, force: true }); | ||
| logger.info("Database directory removed successfully."); | ||
| if (dirExists) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice one 👍
…cture Co-authored-by: Tomek Kopacki <[email protected]>
|
|
@Byczong is attempting to deploy a commit to the NameHash Team on Vercel. A member of the Team first needs to authorize it. |
#118
Refactor env vars, CLI args and configuration handling
This PR introduces a more standardized and modular approach to handling environment variables, command-line arguments, and configuration in ENSRainbow.
Changes
lib/env.tsfileapps/ensrainbow/src/utils/config.ts- Central configuration constantsapps/ensrainbow/src/utils/parsing-utils.ts- Pure parsing functionsapps/ensrainbow/src/utils/env-utils.ts- Environment variable handlingapps/ensrainbow/src/utils/command-utils.ts- CLI argument handlingapps/ensrainbow/src/utils/logger.ts- Updated to use newconfig.ts, moved some code to the new utils filesapps/ensrainbow/src/cli.ts- Refactored to use the new argument resolution utilities