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

Side by Side Diff: infra/tools/new_tool/__main__.py

Issue 1172053003: Created infra/tools/new_tool (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: More tests Created 5 years, 6 months 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 unified diff | Download patch
« no previous file with comments | « infra/tools/new_tool/__init__.py ('k') | infra/tools/new_tool/new_tool.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 # Copyright 2015 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4
5 """Generate a new tool in infra/tools."""
6
7 import argparse
8 import sys
9
10 from infra.tools.new_tool import new_tool
11
12
13 def main(argv):
14 parser = argparse.ArgumentParser(
15 prog='new_tool',
16 description=sys.modules['__main__'].__doc__)
17 new_tool.add_argparse_options(parser)
18 args = parser.parse_args(argv)
19
20 return new_tool.generate_tool_files(args.name[0], args.base_dir)
21
22
23 if __name__ == '__main__':
24 sys.exit(main(sys.argv[1:]))
OLDNEW
« no previous file with comments | « infra/tools/new_tool/__init__.py ('k') | infra/tools/new_tool/new_tool.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698