Commit e17190df authored by Adam Barth's avatar Adam Barth

Merge pull request #85 from flutter/command_dir

Move Command subclasses into commands directory
parents 561350d2 287817f2
...@@ -9,17 +9,17 @@ import 'package:args/command_runner.dart'; ...@@ -9,17 +9,17 @@ import 'package:args/command_runner.dart';
import 'package:logging/logging.dart'; import 'package:logging/logging.dart';
import 'package:sky_tools/src/application_package.dart'; import 'package:sky_tools/src/application_package.dart';
import 'package:sky_tools/src/artifacts.dart'; import 'package:sky_tools/src/artifacts.dart';
import 'package:sky_tools/src/build.dart'; import 'package:sky_tools/src/commands/build.dart';
import 'package:sky_tools/src/cache.dart'; import 'package:sky_tools/src/commands/cache.dart';
import 'package:sky_tools/src/init.dart'; import 'package:sky_tools/src/commands/init.dart';
import 'package:sky_tools/src/install.dart'; import 'package:sky_tools/src/commands/install.dart';
import 'package:sky_tools/src/list.dart'; import 'package:sky_tools/src/commands/list.dart';
import 'package:sky_tools/src/listen.dart'; import 'package:sky_tools/src/commands/listen.dart';
import 'package:sky_tools/src/logs.dart'; import 'package:sky_tools/src/commands/logs.dart';
import 'package:sky_tools/src/run_mojo.dart'; import 'package:sky_tools/src/commands/run_mojo.dart';
import 'package:sky_tools/src/start.dart'; import 'package:sky_tools/src/commands/start.dart';
import 'package:sky_tools/src/stop.dart'; import 'package:sky_tools/src/commands/stop.dart';
import 'package:sky_tools/src/trace.dart'; import 'package:sky_tools/src/commands/trace.dart';
class FlutterCommandRunner extends CommandRunner { class FlutterCommandRunner extends CommandRunner {
FlutterCommandRunner() FlutterCommandRunner()
......
...@@ -11,7 +11,7 @@ import 'package:archive/archive.dart'; ...@@ -11,7 +11,7 @@ import 'package:archive/archive.dart';
import 'package:args/command_runner.dart'; import 'package:args/command_runner.dart';
import 'package:yaml/yaml.dart'; import 'package:yaml/yaml.dart';
import 'artifacts.dart'; import '../artifacts.dart';
const String _kSnapshotKey = 'snapshot_blob.bin'; const String _kSnapshotKey = 'snapshot_blob.bin';
const List<String> _kDensities = const ['drawable-xxhdpi']; const List<String> _kDensities = const ['drawable-xxhdpi'];
......
...@@ -9,7 +9,7 @@ import 'dart:async'; ...@@ -9,7 +9,7 @@ import 'dart:async';
import 'package:args/command_runner.dart'; import 'package:args/command_runner.dart';
import 'package:logging/logging.dart'; import 'package:logging/logging.dart';
import 'artifacts.dart'; import '../artifacts.dart';
final Logger _logging = new Logger('sky_tools.cache'); final Logger _logging = new Logger('sky_tools.cache');
......
...@@ -8,8 +8,8 @@ import 'dart:async'; ...@@ -8,8 +8,8 @@ import 'dart:async';
import 'package:args/command_runner.dart'; import 'package:args/command_runner.dart';
import 'application_package.dart'; import '../application_package.dart';
import 'device.dart'; import '../device.dart';
class InstallCommand extends Command { class InstallCommand extends Command {
final name = 'install'; final name = 'install';
......
...@@ -8,7 +8,8 @@ import 'dart:async'; ...@@ -8,7 +8,8 @@ import 'dart:async';
import 'package:args/command_runner.dart'; import 'package:args/command_runner.dart';
import 'package:logging/logging.dart'; import 'package:logging/logging.dart';
import 'package:sky_tools/src/device.dart';
import '../device.dart';
final Logger _logging = new Logger('sky_tools.list'); final Logger _logging = new Logger('sky_tools.list');
......
...@@ -9,9 +9,10 @@ import 'dart:io'; ...@@ -9,9 +9,10 @@ import 'dart:io';
import 'package:args/command_runner.dart'; import 'package:args/command_runner.dart';
import 'package:logging/logging.dart'; import 'package:logging/logging.dart';
import 'package:sky_tools/src/application_package.dart';
import 'package:sky_tools/src/device.dart'; import '../application_package.dart';
import 'package:sky_tools/src/process.dart'; import '../device.dart';
import '../process.dart';
final Logger _logging = new Logger('sky_tools.listen'); final Logger _logging = new Logger('sky_tools.listen');
......
...@@ -8,7 +8,8 @@ import 'dart:async'; ...@@ -8,7 +8,8 @@ import 'dart:async';
import 'package:args/command_runner.dart'; import 'package:args/command_runner.dart';
import 'package:logging/logging.dart'; import 'package:logging/logging.dart';
import 'package:sky_tools/src/device.dart';
import '../device.dart';
final Logger _logging = new Logger('sky_tools.logs'); final Logger _logging = new Logger('sky_tools.logs');
......
...@@ -11,8 +11,8 @@ import 'package:args/command_runner.dart'; ...@@ -11,8 +11,8 @@ import 'package:args/command_runner.dart';
import 'package:logging/logging.dart'; import 'package:logging/logging.dart';
import 'package:path/path.dart' as path; import 'package:path/path.dart' as path;
import 'artifacts.dart'; import '../artifacts.dart';
import 'process.dart'; import '../process.dart';
final Logger _logging = new Logger('sky_tools.run_mojo'); final Logger _logging = new Logger('sky_tools.run_mojo');
......
...@@ -9,10 +9,11 @@ import 'dart:async'; ...@@ -9,10 +9,11 @@ import 'dart:async';
import 'package:args/command_runner.dart'; import 'package:args/command_runner.dart';
import 'package:logging/logging.dart'; import 'package:logging/logging.dart';
import 'package:path/path.dart' as path; import 'package:path/path.dart' as path;
import 'package:sky_tools/src/application_package.dart';
import 'package:sky_tools/src/device.dart'; import '../application_package.dart';
import 'package:sky_tools/src/install.dart'; import '../device.dart';
import 'package:sky_tools/src/stop.dart'; import 'install.dart';
import 'stop.dart';
final Logger _logging = new Logger('sky_tools.start'); final Logger _logging = new Logger('sky_tools.start');
......
...@@ -8,8 +8,9 @@ import 'dart:async'; ...@@ -8,8 +8,9 @@ import 'dart:async';
import 'package:args/command_runner.dart'; import 'package:args/command_runner.dart';
import 'package:logging/logging.dart'; import 'package:logging/logging.dart';
import 'package:sky_tools/src/application_package.dart';
import 'package:sky_tools/src/device.dart'; import '../application_package.dart';
import '../device.dart';
final Logger _logging = new Logger('sky_tools.stop'); final Logger _logging = new Logger('sky_tools.stop');
......
...@@ -8,8 +8,9 @@ import 'dart:async'; ...@@ -8,8 +8,9 @@ import 'dart:async';
import 'package:args/command_runner.dart'; import 'package:args/command_runner.dart';
import 'package:logging/logging.dart'; import 'package:logging/logging.dart';
import 'package:sky_tools/src/application_package.dart';
import 'package:sky_tools/src/device.dart'; import '../application_package.dart';
import '../device.dart';
final Logger _logging = new Logger('sky_tools.trace'); final Logger _logging = new Logger('sky_tools.trace');
......
...@@ -10,7 +10,7 @@ import 'dart:io'; ...@@ -10,7 +10,7 @@ import 'dart:io';
import 'package:args/command_runner.dart'; import 'package:args/command_runner.dart';
import 'package:path/path.dart' as p; import 'package:path/path.dart' as p;
import 'package:sky_tools/src/init.dart'; import 'package:sky_tools/src/commands/init.dart';
import 'package:test/test.dart'; import 'package:test/test.dart';
main() => defineTests(); main() => defineTests();
......
...@@ -6,7 +6,7 @@ library install_test; ...@@ -6,7 +6,7 @@ library install_test;
import 'package:args/command_runner.dart'; import 'package:args/command_runner.dart';
import 'package:mockito/mockito.dart'; import 'package:mockito/mockito.dart';
import 'package:sky_tools/src/install.dart'; import 'package:sky_tools/src/commands/install.dart';
import 'package:test/test.dart'; import 'package:test/test.dart';
import 'src/common.dart'; import 'src/common.dart';
......
...@@ -6,7 +6,7 @@ library list_test; ...@@ -6,7 +6,7 @@ library list_test;
import 'package:args/command_runner.dart'; import 'package:args/command_runner.dart';
import 'package:mockito/mockito.dart'; import 'package:mockito/mockito.dart';
import 'package:sky_tools/src/list.dart'; import 'package:sky_tools/src/commands/list.dart';
import 'package:test/test.dart'; import 'package:test/test.dart';
import 'src/common.dart'; import 'src/common.dart';
......
...@@ -6,7 +6,7 @@ library listen_test; ...@@ -6,7 +6,7 @@ library listen_test;
import 'package:args/command_runner.dart'; import 'package:args/command_runner.dart';
import 'package:mockito/mockito.dart'; import 'package:mockito/mockito.dart';
import 'package:sky_tools/src/listen.dart'; import 'package:sky_tools/src/commands/listen.dart';
import 'package:test/test.dart'; import 'package:test/test.dart';
import 'src/common.dart'; import 'src/common.dart';
......
...@@ -6,7 +6,7 @@ library logs_test; ...@@ -6,7 +6,7 @@ library logs_test;
import 'package:args/command_runner.dart'; import 'package:args/command_runner.dart';
import 'package:mockito/mockito.dart'; import 'package:mockito/mockito.dart';
import 'package:sky_tools/src/logs.dart'; import 'package:sky_tools/src/commands/logs.dart';
import 'package:test/test.dart'; import 'package:test/test.dart';
import 'src/common.dart'; import 'src/common.dart';
......
...@@ -6,7 +6,7 @@ library start_test; ...@@ -6,7 +6,7 @@ library start_test;
import 'package:args/command_runner.dart'; import 'package:args/command_runner.dart';
import 'package:mockito/mockito.dart'; import 'package:mockito/mockito.dart';
import 'package:sky_tools/src/start.dart'; import 'package:sky_tools/src/commands/start.dart';
import 'package:test/test.dart'; import 'package:test/test.dart';
import 'src/common.dart'; import 'src/common.dart';
......
...@@ -6,7 +6,7 @@ library stop_test; ...@@ -6,7 +6,7 @@ library stop_test;
import 'package:args/command_runner.dart'; import 'package:args/command_runner.dart';
import 'package:mockito/mockito.dart'; import 'package:mockito/mockito.dart';
import 'package:sky_tools/src/stop.dart'; import 'package:sky_tools/src/commands/stop.dart';
import 'package:test/test.dart'; import 'package:test/test.dart';
import 'src/common.dart'; import 'src/common.dart';
......
...@@ -6,7 +6,7 @@ library trace_test; ...@@ -6,7 +6,7 @@ library trace_test;
import 'package:args/command_runner.dart'; import 'package:args/command_runner.dart';
import 'package:mockito/mockito.dart'; import 'package:mockito/mockito.dart';
import 'package:sky_tools/src/trace.dart'; import 'package:sky_tools/src/commands/trace.dart';
import 'package:test/test.dart'; import 'package:test/test.dart';
import 'src/common.dart'; import 'src/common.dart';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment