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

Handle WorkshopFileInfos.json #13

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

Conversation

KyleJamesWalker
Copy link
Contributor

Allow running tts-prefetch ~/Library/Tabletop\ Simulator/Mods/Workshop/*.json without an error.

I generally just run the prefetch on my entire mods directory and it always errors out on the WorkshopFileinfos.json file

Example output:

Skipping /Users/user.home/Library/Tabletop Simulator/Mods/Workshop/WorkshopFileInfos.json likely workshop file info

@eigengrau
Copy link
Owner

Sorry for letting this lie around stale for so long!

This looks a bit too magical for my taste and I wonder whether this may make it easier for files passed on the command-line unintentionally to go unnoticed. I think the main expectation for command-line programs, when given a file of improper format, would be to complain early and loudly.

I was wondering whether it would make sense to instead allow passing a directory name on the command-line, and in this case we could be more clever about which files we actually load. This way we don’t ignore files that, according to the command-line, should be processed, but running the tool on all of the files is still more convenient than before.

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