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.'); |
} |