tools: Emphasise the command over the home page.
This commit is contained in:
parent
0331a9da1e
commit
1d8d497fff
1 changed files with 3 additions and 3 deletions
|
|
@ -1110,13 +1110,13 @@ def print_tool_info():
|
||||||
for tool in sorted(tools.tools_all(), key=lambda t: t.__name__):
|
for tool in sorted(tools.tools_all(), key=lambda t: t.__name__):
|
||||||
print(termstr.TermStr(tool.__name__).bold() if tools.is_tool_available(tool)
|
print(termstr.TermStr(tool.__name__).bold() if tools.is_tool_available(tool)
|
||||||
else termstr.TermStr(tool.__name__).fg_color(termstr.Color.red) + " (not available)")
|
else termstr.TermStr(tool.__name__).fg_color(termstr.Color.red) + " (not available)")
|
||||||
print("url:", tool.url)
|
|
||||||
extensions = list(extensions_for_tool.get(tool, {"*"}))
|
|
||||||
print("extensions:", ", ".join(extensions))
|
|
||||||
if hasattr(tool, "command"):
|
if hasattr(tool, "command"):
|
||||||
print(f"command: {tool.command} foo.{extensions[0]}")
|
print(f"command: {tool.command} foo.{extensions[0]}")
|
||||||
else:
|
else:
|
||||||
print("function:", "eris.tools." + tool.__name__)
|
print("function:", "eris.tools." + tool.__name__)
|
||||||
|
print("url:", tool.url)
|
||||||
|
extensions = list(extensions_for_tool.get(tool, {"*"}))
|
||||||
|
print("extensions:", ", ".join(extensions))
|
||||||
print()
|
print()
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue