implement flutter packages get/upgrade command (#5603)

* implement flutter packages get/upgrade command
* alias flutter pub
* refactor findProjectRoot for use by multiple commands

fixes https://github.com/flutter/flutter/issues/4994
This commit is contained in:
Dan Rubel
2016-08-25 22:37:48 -04:00
committed by GitHub
parent b5f763b45e
commit 194a9ef3c9
7 changed files with 163 additions and 25 deletions

View File

@@ -25,6 +25,7 @@ import 'src/commands/install.dart';
import 'src/commands/listen.dart';
import 'src/commands/logs.dart';
import 'src/commands/setup.dart';
import 'src/commands/packages.dart';
import 'src/commands/precache.dart';
import 'src/commands/refresh.dart';
import 'src/commands/run.dart';
@@ -68,6 +69,7 @@ Future<Null> main(List<String> args) async {
..addCommand(new InstallCommand())
..addCommand(new ListenCommand())
..addCommand(new LogsCommand())
..addCommand(new PackagesCommand())
..addCommand(new PrecacheCommand())
..addCommand(new RefreshCommand())
..addCommand(new RunCommand())