Example #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))
Example #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))
Example #3
0
 def commands(self):
     """ Allow autocomplete of help tools. """
     return tool_repo.list_tools()
Example #4
0
 def commands(self):
     """ Allow autocomplete of help tools. """
     return tool_repo.list_tools()