commit | 11c82134ecb639618aa1d8ac0eb9795861f9eba0 | [log] [tgz] |
---|---|---|
author | Brett Sutton <bsutton@noojee.com.au> | Fri May 14 15:39:47 2021 |
committer | GitHub <noreply@github.com> | Fri May 14 15:39:47 2021 |
tree | ba23800457b21a80492fe365fe7efaf3f2d6c978 | |
parent | ecdb0c54baf22a36e99858cee9b053848aeafcf0 [diff] |
Updated search for pub cache directory on windows to align with the d… (#44) Updated search for pub cache directory on windows to align with the dart documenation on where it is located. Logic falls back to original version of the pub cache can't be found at the expected version. The dart doco says the location can vary on different windows version and I suspect that fact is the source of this problem.
A library to reflect on the local pub cache.
pub_cache
lets you reflect on the information in your Pub cache. For example, to find all the applications that have been activated:
PubCache cache = new PubCache(); for (Application app in cache.getGlobalApplications()) { print('activated app: ${app.name}, version: ${app.version}'); }
Some other interesting use cases:
Please file feature requests and bugs at the issue tracker.