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

Unified Diff: lib/src/command/lish.dart

Issue 2044253003: Refactor Source and SourceRegistry. (Closed) Base URL: git@github.com:dart-lang/pub.git@master
Patch Set: Rename LiveSource to BoundSource. Created 4 years, 6 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 | « lib/src/command/cache_repair.dart ('k') | lib/src/command/list_package_dirs.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/command/lish.dart
diff --git a/lib/src/command/lish.dart b/lib/src/command/lish.dart
index 380b76318ce1bfa72f18302a2d939d0e9fc46f17..3d10b8930061851586ff2ac9bed2880fa282f64c 100644
--- a/lib/src/command/lish.dart
+++ b/lib/src/command/lish.dart
@@ -13,7 +13,6 @@ import '../http.dart';
import '../io.dart';
import '../log.dart' as log;
import '../oauth2.dart' as oauth2;
-import '../source/hosted.dart';
import '../utils.dart';
import '../validator.dart';
@@ -39,7 +38,7 @@ class LishCommand extends PubCommand {
}
// Otherwise, use the default.
- return Uri.parse(HostedSource.defaultUrl);
+ return Uri.parse(cache.sources.hosted.defaultUrl);
}
/// Whether the publish is just a preview.
@@ -53,7 +52,7 @@ class LishCommand extends PubCommand {
help: 'Validate but do not publish the package.');
argParser.addFlag('force', abbr: 'f', negatable: false,
help: 'Publish without confirmation if there are no errors.');
- argParser.addOption('server', defaultsTo: HostedSource.defaultUrl,
+ argParser.addOption('server', defaultsTo: cache.sources.hosted.defaultUrl,
help: 'The package server to which to upload this package.');
}
« no previous file with comments | « lib/src/command/cache_repair.dart ('k') | lib/src/command/list_package_dirs.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698