Skip to content
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

feat(config): support multiple profiles #25

Merged
merged 1 commit into from
Aug 29, 2023
Merged

feat(config): support multiple profiles #25

merged 1 commit into from
Aug 29, 2023

Conversation

pilartomas
Copy link
Collaborator

No description provided.

Signed-off-by: Tomas Pilar <tomas.pilar@ibm.com>
@pilartomas pilartomas marked this pull request as ready for review August 28, 2023 07:39

try {
await parser.parse();
await parser.config(loadYargsConfig()).parse();
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We want to catch load errors

@pilartomas pilartomas merged commit 963fbc0 into main Aug 29, 2023
7 checks passed
@pilartomas pilartomas deleted the feat-profiles branch August 29, 2023 12:56
Comment on lines +12 to +14
Object.entries(profileConfig).forEach(([key, value]) => {
args[key] = value;
});
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 This can probably be replaced with the following:

Object.assign(args, profileConfig)

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.

2 participants