Skip to content

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

Merged
merged 5 commits into from
Jul 29, 2021

Conversation

shota-kizawa
Copy link
Contributor

fix: #168
add providerArgs option to the push & pull command

Copy link
Member

@kazupon kazupon left a 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?

@shota-kizawa
Copy link
Contributor Author

Sure!
Just a moment, please.

@shota-kizawa shota-kizawa requested a review from kazupon July 27, 2021 06:14
@@ -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 })
Copy link
Member

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.

Copy link
Contributor Author

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.

@shota-kizawa shota-kizawa requested a review from kazupon July 27, 2021 07:37
@kazupon kazupon added the Type: Feature Includes new features label Jul 27, 2021
@shota-kizawa shota-kizawa requested a review from kazupon July 28, 2021 00:58
@kazupon kazupon merged commit c173e3b into intlify:maintain-v1 Jul 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Feature Includes new features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants