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

[#46] Extract documents within adventures into separate files #61

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

arbron
Copy link

@arbron arbron commented Feb 20, 2025

Adds a new expandAdventures option that extracts all of the documents within an adventure into their own files when extracting from LevelDB. When this option is selected each individual document in the adventure is extracted as if they were primary documents and gets transformEntry and transformName called on them with an additional context object that contains information on the adventure itself. The adventure is then saved with the filenames for the written files in place of the whole objects.

When compiling back to NeDB or LevelDB, the CLI will check for any strings within the adventure document and reassemble it from the files listed.

Closes #46

Adds a new `expandAdventures` option that extracts all of the
documents within an adventure into their own files when extracting
from LevelDB. When this option is selected each individual
document in the adventure is extracted as if they were primary
documents and gets `transformEntry` and `transformName` called on
them with an additional context object that contains information
on the adventure itself. The adventure is then saved with the
filenames for the written files in place of the whole objects.

When compiling back to NeDB or LevelDB, the CLI will check for any
strings within the adventure document and reassemble it from the
files listed.

Closes foundryvtt#46
@arbron
Copy link
Author

arbron commented Feb 20, 2025

Some work will need to be done to integrate this with my folders PR once it is merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant