Mentions flutter packages get rather than pub get (#6625)

Fixes #6417
This commit is contained in:
Adam Barth
2016-11-01 13:27:06 -07:00
committed by GitHub
parent 8f2d40c2d5
commit 67f591000f
11 changed files with 5 additions and 13 deletions

View File

@@ -3,8 +3,6 @@
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
<excludeFolder url="file://$MODULE_DIR$/.pub" />
<excludeFolder url="file://$MODULE_DIR$/build" />
<excludeFolder url="file://$MODULE_DIR$/packages" />
<excludeFolder url="file://$MODULE_DIR$/test/calculator/packages" />
<excludeFolder url="file://$MODULE_DIR$/test/packages" />

View File

@@ -3,8 +3,6 @@
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
<excludeFolder url="file://$MODULE_DIR$/.pub" />
<excludeFolder url="file://$MODULE_DIR$/build" />
<excludeFolder url="file://$MODULE_DIR$/packages" />
<excludeFolder url="file://$MODULE_DIR$/test/packages" />
</content>

View File

@@ -3,7 +3,6 @@
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
<excludeFolder url="file://$MODULE_DIR$/.pub" />
<excludeFolder url="file://$MODULE_DIR$/bin/packages" />
<excludeFolder url="file://$MODULE_DIR$/packages" />
<excludeFolder url="file://$MODULE_DIR$/test/animation/packages" />

View File

@@ -3,7 +3,6 @@
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
<excludeFolder url="file://$MODULE_DIR$/.pub" />
<excludeFolder url="file://$MODULE_DIR$/packages" />
<excludeFolder url="file://$MODULE_DIR$/test/packages" />
<excludeFolder url="file://$MODULE_DIR$/test/src/packages" />

View File

@@ -3,7 +3,6 @@
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
<excludeFolder url="file://$MODULE_DIR$/.pub" />
<excludeFolder url="file://$MODULE_DIR$/example/packages" />
<excludeFolder url="file://$MODULE_DIR$/packages" />
<excludeFolder url="file://$MODULE_DIR$/test/packages" />

View File

@@ -3,7 +3,6 @@
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
<excludeFolder url="file://$MODULE_DIR$/.pub" />
<excludeFolder url="file://$MODULE_DIR$/packages" />
<excludeFolder url="file://$MODULE_DIR$/test/packages" />
</content>

View File

@@ -19,7 +19,7 @@ class CreateCommand extends FlutterCommand {
CreateCommand() {
argParser.addFlag('pub',
defaultsTo: true,
help: 'Whether to run "pub get" after the project has been created.'
help: 'Whether to run "flutter packages get" after the project has been created.'
);
argParser.addFlag(
'with-driver-test',

View File

@@ -18,7 +18,7 @@ class UpdatePackagesCommand extends FlutterCommand {
UpdatePackagesCommand({ this.hidden: false }) {
argParser.addFlag(
'upgrade',
help: 'Run "pub upgrade" rather than "pub get".',
help: 'Ignores pubspec.lock and retrieves newer versions of packages.',
defaultsTo: false
);
}

View File

@@ -41,7 +41,7 @@ class PackageMap {
String message = '$packagesPath does not exist.';
String pubspecPath = path.absolute(path.dirname(packagesPath), 'pubspec.yaml');
if (FileSystemEntity.isFileSync(pubspecPath))
message += '\nDid you run `pub get` in this directory?';
message += '\nDid you run "flutter packages get" in this directory?';
else
message += '\nDid you run this command from the same directory as your pubspec.yaml file?';
return message;

View File

@@ -46,7 +46,7 @@ Future<int> pubGet({
if (!checkLastModified || _shouldRunPubGet(pubSpecYaml: pubSpecYaml, dotPackages: dotPackages)) {
String command = upgrade ? 'upgrade' : 'get';
Status status = logger.startProgress("Running 'pub $command' in ${path.basename(directory)}...");
Status status = logger.startProgress("Running 'flutter packages $command' in ${path.basename(directory)}...");
int code = await runCommandAndStreamOutput(
<String>[sdkBinaryName('pub'), '--verbosity=warning', command, '--no-packages-dir', '--no-precompile'],
workingDirectory: directory,

View File

@@ -57,7 +57,7 @@ abstract class FlutterCommand extends Command {
void usesPubOption() {
argParser.addFlag('pub',
defaultsTo: true,
help: 'Whether to run "pub get" before executing this command.');
help: 'Whether to run "flutter packages get" before executing this command.');
_usesPubOption = true;
}