From a4b0c3d5843aaac7d573bd5f7084da7842865b78 Mon Sep 17 00:00:00 2001 From: Devon Carew Date: Thu, 28 Jan 2016 15:18:25 -0800 Subject: [PATCH] make the output from create more terse --- .../flutter_tools/lib/src/commands/create.dart | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/packages/flutter_tools/lib/src/commands/create.dart b/packages/flutter_tools/lib/src/commands/create.dart index 6e93e3657b..90b09ff3fd 100644 --- a/packages/flutter_tools/lib/src/commands/create.dart +++ b/packages/flutter_tools/lib/src/commands/create.dart @@ -52,7 +52,8 @@ class CreateCommand extends Command { printStatus(''); - String message = '''All done! To run your application: + String message = ''' +All done! To run your application: \$ cd ${out.path} \$ flutter start @@ -64,14 +65,14 @@ class CreateCommand extends Command { return code; } + printStatus(''); printStatus(message); return 0; } Future pubGet({ String directory: '', - bool skipIfAbsent: false, - bool verbose: true + bool skipIfAbsent: false }) async { File pubSpecYaml = new File(path.join(directory, 'pubspec.yaml')); File pubSpecLock = new File(path.join(directory, 'pubspec.lock')); @@ -85,10 +86,9 @@ class CreateCommand extends Command { } if (!pubSpecLock.existsSync() || pubSpecYaml.lastModifiedSync().isAfter(pubSpecLock.lastModifiedSync())) { - if (verbose) - printStatus("Running pub get in $directory..."); + printStatus("Running 'pub get' in '$directory'..."); int code = await runCommandAndStreamOutput( - [sdkBinaryName('pub'), 'get'], + [sdkBinaryName('pub'), '--verbosity=warning', 'get'], workingDirectory: directory ); if (code != 0) @@ -131,7 +131,7 @@ abstract class Template { File file = new File(path.join(dir.path, filePath)); file.parent.createSync(); file.writeAsStringSync(contents); - printStatus(file.path); + printStatus(' ${file.path}'); }); }