Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1319)

Unified Diff: mojo/public/dart/mojom/lib/src/commands/gen.dart

Issue 1441033002: Move mojo and mojom from mojo/public/dart to mojo/dart/packages (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: mojo/public/dart/mojom/lib/src/commands/gen.dart
diff --git a/mojo/public/dart/mojom/lib/src/commands/gen.dart b/mojo/public/dart/mojom/lib/src/commands/gen.dart
deleted file mode 100644
index 21717e982e758fde44456109c29ef9fc20b116ff..0000000000000000000000000000000000000000
--- a/mojo/public/dart/mojom/lib/src/commands/gen.dart
+++ /dev/null
@@ -1,51 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-library mojom.command.tree;
-
-import 'dart:async';
-import 'dart:io';
-
-import 'package:args/args.dart';
-import 'package:args/command_runner.dart';
-import 'package:mojom/src/commands/mojom_command.dart';
-import 'package:mojom/src/generate.dart';
-import 'package:mojom/src/utils.dart';
-import 'package:path/path.dart' as path;
-
-class GenCommand extends MojomCommand {
- String get name => 'gen';
- String get description =>
- 'Generate bindings for .mojom files under --mojom-root into Dart '
- 'packages under --output';
- String get invocation => 'mojom.dart gen -r mojoms/ -o dart-packages/';
-
- Directory _dartRoot;
-
- GenCommand() {
- argParser.addOption('output',
- abbr: 'o',
- defaultsTo: Directory.current.path,
- help: 'Directory where Dart packages live into which we generate the '
- 'resulting bindings.');
- }
-
- run() async {
- MojomCommand.setupLogging();
- await _validateArguments();
- var treeGenerator =
- new TreeGenerator(mojoSdk, mojomRoot, _dartRoot, skips, dryRun: dryRun);
- await treeGenerator.generate();
- return treeGenerator.errors;
- }
-
- _validateArguments() async {
- await validateArguments();
- _dartRoot = new Directory(makeAbsolute(argResults['output']));
- if (!await _dartRoot.exists()) {
- throw new CommandLineError(
- 'Specified --output directory $_dartRoot does not exist');
- }
- }
-}
« no previous file with comments | « mojo/public/dart/mojom/lib/src/commands/check.dart ('k') | mojo/public/dart/mojom/lib/src/commands/mojom_command.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698