-
-
Notifications
You must be signed in to change notification settings - Fork 12
feat: providerArgs option to the push & pull command #169
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
Conversation
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.
We need more unit tests for provideArgs.
Could you add more test cases please?
Sure! |
src/commands/pull.ts
Outdated
@@ -97,7 +103,7 @@ export const handler = async (args: Arguments<PullOptions>): Promise<unknown> => | |||
try { | |||
const locales = args.locales?.split(',').filter(p => p) as Locale[] || [] | |||
const provider = ProviderFactory(conf) | |||
const messages = await provider.pull({ locales, dryRun, normalize, format }) | |||
const messages = await provider.pull({ locales, dryRun, normalize, format, providerArgs }) |
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.
I think providerArgs
should be parsed to object, and it should be passed to provider.
Because it's user-friendly for providers.
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.
Sure!
Please wait a moment.
fix: #168
add providerArgs option to the push & pull command