Closed Infiltrator closed 5 years ago
Thanks for the feedback.
Unfortunately, this is not reasonably possible using only posix-compliant bash. This would only be feasible to add if I were able to use something that could parse JSON but, in order to keep this cross-platform and dependency free, I don't have that luxury.
So if there were bash code that could parse JSON, you would be willing to include it? Would it need to be a full JSON parser or just enough to read { "name": "@foo/bar" }
out?
packages.json:
packages/bar/package.json:
Trying completion:
yarn workspace @foo/bar <TAB>
oryarn workspace bar <TAB>
gives completion for the rootpackage.json
instead.