Пример #1
0
def print_tools(f, compact):
    if compact:
        for arg in tool_repo.list_tools():
            f.write("{cmd}\n".format(cmd=arg))
    else:
        sys.stdout.write("Available tools:\n")
        for arg in tool_repo.list_tools():
            f.write("    {cmd}\n".format(cmd=arg))
Пример #2
0
def print_tools(f, compact):
    if compact:
        for arg in tool_repo.list_tools():
            f.write("{cmd}\n".format(cmd=arg))
    else:
        sys.stdout.write("Available tools:\n")
        for arg in tool_repo.list_tools():
            f.write("    {cmd}\n".format(cmd=arg))
Пример #3
0
 def commands(self):
     """ Allow autocomplete of help tools. """
     return tool_repo.list_tools()
Пример #4
0
 def commands(self):
     """ Allow autocomplete of help tools. """
     return tool_repo.list_tools()