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