Closed kachkaev closed 3 years ago
Perhaps, showing full paths would be the right thing to do given what the JS-imported version does.
The latest commit should have done that: https://github.com/Nixinova/Linguist/commit/a01a3ed93b647d9cdbd4074fc0e6353deb110128, it just hasn't been published to npm yet. From the next version all --json
output filenames will be absolute.
That's cool, thanks! Happy to test that out when a new version is published 🙂 The diff looks promising 👍
Try it now with v2.0.1.
Yep, it works 🎉 Thanks for your quick response 💯
Hi again @Nixinova 👋
Just wanted to share a small observation, which should be a rather rare use case. I’ve got two folders, say
my-analytics-tool
andmy-analytics-tool-data
. The first folder contains useslinguist-cli
as a dependency, while the second folder contains a repo I want to analyse.Here is what I do:
And here is what shows up in the output:
As you can see, instead of proper relative or absolute paths, the output includes entries like
".-data/README.md"
. Perhaps, showing full paths would be the right thing to do given what the JS-imported version does. That would be:I guess there could also be an option to render file paths relative to some specific root path.