Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(549)

Unified Diff: utils/pub/source.dart

Issue 12755024: add cache list command to pub (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: utils/pub/source.dart
===================================================================
--- utils/pub/source.dart (revision 19836)
+++ utils/pub/source.dart (working copy)
@@ -215,6 +215,12 @@
///
/// By default, this just returns [id].
Future<PackageId> resolveId(PackageId id) => new Future.immediate(id);
+
+ /// Returns a list of [Package] that have been cached in in Pub's global cache
Bob Nystrom 2013/03/12 22:12:03 Returns the [Package]s that have been installed in
keertip 2013/03/13 15:55:00 Done.
+ /// directory.
+ Future<List<Package>> getCachedPackages() {
+ if (shouldCache) throw "Source $name must implement this.";
+ }
/// Returns the source's name.
String toString() => name;

Powered by Google App Engine
This is Rietveld 408576698