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

Unified Diff: mojo/public/dart/mojom/lib/src/command_runner.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
« no previous file with comments | « mojo/public/dart/mojom/lib/README.md ('k') | mojo/public/dart/mojom/lib/src/commands/check.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/dart/mojom/lib/src/command_runner.dart
diff --git a/mojo/public/dart/mojom/lib/src/command_runner.dart b/mojo/public/dart/mojom/lib/src/command_runner.dart
deleted file mode 100644
index c16c6fea71421ad1b0a3de5fd9664f2e02884b4f..0000000000000000000000000000000000000000
--- a/mojo/public/dart/mojom/lib/src/command_runner.dart
+++ /dev/null
@@ -1,53 +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_runner;
-
-import 'dart:async';
-import 'dart:io';
-
-import 'package:args/args.dart';
-import 'package:args/command_runner.dart';
-import 'package:mojom/src/commands/check.dart';
-import 'package:mojom/src/commands/gen.dart';
-import 'package:mojom/src/commands/single.dart';
-
-class MojomCommandRunner extends CommandRunner {
- MojomCommandRunner()
- : super("mojom", "mojom is a tool for managing Mojo bindings for Dart.") {
- super.argParser.addFlag('dry-run',
- abbr: 'd',
- defaultsTo: false,
- negatable: false,
- help: 'Print the operations that would have been run, but'
- 'do not run anything.');
- super.argParser.addFlag('ignore-duplicates',
- abbr: 'i',
- defaultsTo: false,
- negatable: false,
- help: 'Ignore generation of a .mojom.dart file into the same location '
- 'as an existing file. By default this is an error');
- super.argParser.addOption('mojom-root',
- abbr: 'r',
- defaultsTo: Directory.current.path,
- help: 'Directory from which to begin the search for .mojom files if '
- 'needed.');
- super.argParser.addOption('mojo-sdk',
- abbr: 'm',
- defaultsTo: Platform.environment['MOJO_SDK'],
- help: 'Path to the Mojo SDK, which can also be specified '
- 'with the environment variable MOJO_SDK.');
- super.argParser.addOption('skip',
- abbr: 's', allowMultiple: true, help: 'Directories to skip.');
- super.argParser.addFlag('verbose',
- abbr: 'v',
- defaultsTo: false,
- negatable: false,
- help: 'Show extra output about what mojom is doing.');
-
- super.addCommand(new CheckCommand());
- super.addCommand(new SinglePackageCommand());
- super.addCommand(new GenCommand());
- }
-}
« no previous file with comments | « mojo/public/dart/mojom/lib/README.md ('k') | mojo/public/dart/mojom/lib/src/commands/check.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698