| Index: tools/yaml2json.py
|
| diff --git a/tools/yaml2json.py b/tools/yaml2json.py
|
| new file mode 100755
|
| index 0000000000000000000000000000000000000000..19cb28822edb046489a9f2fb6079e78a1a6f2349
|
| --- /dev/null
|
| +++ b/tools/yaml2json.py
|
| @@ -0,0 +1,26 @@
|
| +#!/usr/bin/env python
|
| +# Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file
|
| +# for details. All rights reserved. Use of this source code is governed by a
|
| +# BSD-style license that can be found in the LICENSE file.
|
| +
|
| +import os
|
| +import subprocess
|
| +import sys
|
| +
|
| +import utils
|
| +
|
| +def Main():
|
| + args = sys.argv[1:]
|
| + yaml2json_dart = os.path.relpath(
|
| + os.path.join(os.path.dirname(__file__), "yaml2json.dart"))
|
| + command = [utils.CheckedInSdkExecutable(), yaml2json_dart] + args
|
| +
|
| + with utils.CoreDumpArchiver(args):
|
| + exit_code = subprocess.call(command)
|
| +
|
| + utils.DiagnoseExitCode(exit_code, command)
|
| + return exit_code
|
| +
|
| +
|
| +if __name__ == '__main__':
|
| + sys.exit(Main())
|
|
|