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

don't require unused data #14

Merged
merged 2 commits into from
May 5, 2023
Merged

Conversation

Drental
Copy link
Contributor

@Drental Drental commented May 3, 2023

closes #13

remove requirements for foundry-centric config when inputDirectory and outputDirectoy are given.

Copy link
Contributor

@cswendrowski cswendrowski left a comment

Choose a reason for hiding this comment

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

Thanks for the contribution! Generally looks good other than a slight cleanup. If you don't make the change by the time I next work on the CLI, I'll merge and do the tweak myself

const compendiumName = argv.compendiumName ?? argv.value;
if ( !compendiumName ) {
if ( !compendiumName && ( dbMode === "nedb" || (!argv.outputDirectory || !argv.inputDirectory))) {
Copy link
Contributor

Choose a reason for hiding this comment

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

We reuse (!argv.outputDirectory || !argv.inputDirectory) three times here, let's pull it to a variable such as usingDefaultDirectory

Copy link
Contributor Author

Choose a reason for hiding this comment

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

that's simple enough.
Done

@cswendrowski cswendrowski merged commit c76396e into foundryvtt:main May 5, 2023
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.

don't require data that is not used
2 participants