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

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
« no previous file with comments | « utils/pub/pub.dart ('k') | utils/tests/pub/pub_cache_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/pub/source.dart
===================================================================
--- utils/pub/source.dart (revision 19938)
+++ utils/pub/source.dart (working copy)
@@ -215,6 +215,11 @@
///
/// By default, this just returns [id].
Future<PackageId> resolveId(PackageId id) => new Future.immediate(id);
+
+ /// Returns the [Package]s that have been installed in the system cache.
+ Future<List<Package>> getCachedPackages() {
+ if (shouldCache) throw "Source $name must implement this.";
+ }
/// Returns the source's name.
String toString() => name;
« no previous file with comments | « utils/pub/pub.dart ('k') | utils/tests/pub/pub_cache_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698