add another activated app
1 file changed
tree: ee4a1949a5fc94b03b3980819ce815635258d220
  1. example/
  2. lib/
  3. test/
  4. tool/
  5. .gitignore
  6. .project
  7. .travis.yml
  8. analysis_options.yaml
  9. appveyor.yml
  10. AUTHORS
  11. CHANGELOG.md
  12. CONTRIBUTING.md
  13. LICENSE
  14. pubspec.yaml
  15. README.md
README.md

pub_cache

A library to reflect on the local pub cache.

pub package Build Status Build status

How do I use it?

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:

  • finding all the activated applications whose defining package has a specific meta-data file
  • given a package name, locate the directory on disk for that package, and using that location to read resources contained in the package
  • finding the latest non-dev version of all the packages in the cache

Features and bugs

Please file feature requests and bugs at the issue tracker.