コード例 #1
0
ファイル: help.py プロジェクト: bjorns/aem-cmd
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
ファイル: help.py プロジェクト: bjorns/aem-cmd
 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()