Lines Matching refs:tool

24   import grit.tool.build
25 return grit.tool.build.RcBuilder()
28 import grit.tool.buildinfo
29 return grit.tool.buildinfo.DetermineBuildInfo()
32 import grit.tool.count
33 return grit.tool.count.CountMessage()
36 import grit.tool.diff_structures
37 return grit.tool.diff_structures.DiffStructures()
40 import grit.tool.menu_from_parts
41 return grit.tool.menu_from_parts.MenuTranslationsFromParts()
44 import grit.tool.newgrd
45 return grit.tool.newgrd.NewGrd()
48 import grit.tool.resize
49 return grit.tool.resize.ResizeDialog()
52 import grit.tool.rc2grd
53 return grit.tool.rc2grd.Rc2Grd()
56 import grit.tool.test
57 return grit.tool.test.TestTool()
60 import grit.tool.transl2tc
61 return grit.tool.transl2tc.TranslationToTc()
64 import grit.tool.unit
65 return grit.tool.unit.UnitTestTool()
68 import grit.tool.xmb
69 return grit.tool.xmb.OutputXmb()
72 import grit.tool.android2grd
73 return grit.tool.android2grd.Android2Grd()
78 _HIDDEN = 3 # optional key - presence indicates tool is hidden
80 # Maps tool names to the tool's module. Done as a list of (key, value) tuples
110 for (tool, info) in _TOOLS:
112 tool_list += ' %-12s %s\n' % (tool, info[_FACTORY]().ShortDescription())
122 Usage: grit [GLOBALOPTIONS] TOOL [args to tool]
146 For more information on how to use a particular tool, and the specific
147 arguments you can send to that tool, execute 'grit help TOOL'
197 def _GetToolInfo(tool):
198 """Returns the info map for the tool named 'tool' or None if there is no
199 such tool."""
200 matches = [t for t in _TOOLS if t[0] == tool]
218 tool = args[1].lower()
219 if not _GetToolInfo(tool):
220 print "No such tool. Try running 'grit help' for a list of tools."
224 % (tool))
225 print _GetToolInfo(tool)[_FACTORY]().__doc__
231 print "No tool provided. Try running 'grit help' for a list of tools."
233 tool = args[0]
234 if not _GetToolInfo(tool):
235 print "No such tool. Try running 'grit help' for a list of tools."
239 if _GetToolInfo(tool)[_REQUIRES_INPUT]:
262 toolobject = _GetToolInfo(tool)[_FACTORY]()