Module ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body Expr Str Expr Str Assign NameStore Dict Str Str Str Str Str Str Str Str NameLoad NameLoad Dict Str NameLoad Dict Str NameLoad NameLoad NameLoad NameLoad NameLoad FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str If CompareIs NameLoad NameLoad body Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr orelse Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore ListLoad For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareIs NameLoad NameLoad body Break Expr Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot Call NameLoad NameLoad NameLoad body Break Assign NameStore NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return CompareEq SubscriptLoad NameLoad Index Num Str decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults ListLoad body Expr Str Assign NameStore AttributeLoad NameLoad attr For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareIs NameLoad NameLoad body Return ListLoad Assign NameStore NameLoad If UnaryOpNot Call NameLoad NameLoad NameLoad body Return ListLoad Assign NameStore Call AttributeLoad NameLoad attr Return Call NameLoad ListComp NameLoad comprehension NameStore NameLoad UnaryOpNot Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr If BoolOpAnd CompareGt Call NameLoad NameLoad Num CompareEq SubscriptLoad NameLoad Index Num Str body Return SubscriptLoad AttributeLoad NameLoad attr Index Str Assign NameStore Num For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad AugAssignAdd NameStore Num If UnaryOpNot Call NameLoad NameLoad NameLoad body If CompareNotEq NameLoad Call NameLoad NameLoad body Return NameLoad Return NameLoad Assign NameStore NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr For NameStore SubscriptLoad NameLoad Slice Num body Assign SubscriptStore NameLoad Index NameLoad Dict Assign NameStore SubscriptLoad NameLoad Index NameLoad Assign SubscriptStore NameLoad Index SubscriptLoad NameLoad Index Num NameLoad decorator_list decorator_list
N/A googkit.commands.build BuildCommand googkit.commands.candidates CandidatesCommand googkit.commands.init InitCommand googkit.commands.lint LintCommand googkit.commands.ready ReadyCommand googkit.commands.setup SetupCommand googkit.commands.update_deps UpdateDepsCommand CommandTree N/A object N/A N/A A class for command tree that provides a sub-command mechanism.
     N/A Default command tree.
     N/A DEFAULT_TREE N/A _candidates build config deps init lint ready setup CandidatesCommand BuildCommand N/A apply ReadyCommand N/A update UpdateDepsCommand InitCommand LintCommand ReadyCommand SetupCommand __init__ N/A N/A self tree N/A None N/A N/A Creates a command tree.
        You can set customized command tree by first argument.
         N/A N/A tree None N/A N/A N/A self _tree N/A N/A N/A CommandTree DEFAULT_TREE copy N/A N/A N/A self _tree tree N/A right_commands N/A N/A self args N/A N/A N/A Returns a valid command part of the specified arguments.

        Usage::
            >>> from googkit.commands.command import Command
            >>> stub_cmd_tree = {
            ...     'sub_cmd': {'sub_sub_cmd': Command}
            ...     }
            >>> cmd_tree = CommandTree(stub_cmd_tree)
            >>> cmd_tree.right_commands(['sub_cmd', 'sub_sub_cmd', 'invalid'])
            ['sub_cmd', 'sub_sub_cmd']
         N/A command_dict N/A self _tree N/A result N/A N/A arg args N/A N/A next_dict N/A N/A command_dict get arg N/A N/A next_dict None N/A N/A N/A N/A N/A result append arg N/A N/A N/A isinstance next_dict dict N/A N/A N/A command_dict next_dict N/A result N/A is_internal_command N/A N/A cls name N/A N/A N/A Whether the specified command is an internal command.
         N/A N/A N/A name N/A 0 _ N/A classmethod available_commands N/A N/A self args N/A N/A N/A N/A Returns available command list.
        Optionally you can set a sub command tree to search.

        Usage::
            >>> from googkit.commands.command import Command
            >>> stub_cmd_tree = {
            ...     'sub_cmd': {
            ...         'sub_sub_cmd1': Command,
            ...         'sub_sub_cmd2': Command,
            ...         }
            ...     }
            >>> cmd_tree = CommandTree(stub_cmd_tree)
            >>> cmd_tree.available_commands()
            ['sub_sub_cmd1', 'sub_sub_cmd2']
         N/A command_dict N/A self _tree N/A arg args N/A N/A next_dict N/A N/A command_dict get arg N/A N/A next_dict None N/A N/A N/A N/A command_dict next_dict N/A N/A N/A isinstance command_dict dict N/A N/A N/A N/A commands N/A N/A command_dict keys N/A N/A sorted N/A cmd N/A cmd commands N/A N/A N/A CommandTree is_internal_command cmd N/A command_class N/A N/A self args N/A N/A N/A Returns a command class by the arguments.

        Usage::
            >>> from googkit.commands.command import Command
            >>> stub_cmd_tree = {
            ...     'sub_cmd': {'sub_sub_cmd': Command}
            ...     }
            >>> cmd_tree = CommandTree(stub_cmd_tree)
            >>> cmd_tree.command_class(['sub_cmd', 'sub_sub_cmd'])
            Command
         N/A value N/A self _tree N/A N/A N/A N/A len args 1 N/A N/A args N/A 0 _candidates N/A N/A N/A N/A self _tree N/A _candidates N/A depth 0 N/A arg args N/A N/A next_value N/A N/A value get arg N/A depth 1 N/A N/A N/A isinstance next_value dict N/A N/A N/A depth N/A len args N/A N/A None N/A next_value N/A value next_value N/A None N/A register N/A N/A self names commands N/A N/A N/A Registers a commands by each name.

        Usage::
            >>> from googkit.commands.command import Command
            >>> cmd_tree = CommandTree()
            >>> cmd_tree.register(['my_cmd1', 'my_cmd2'], [Command, Command])
         N/A command_dict N/A self _tree N/A name N/A names N/A -1 N/A N/A N/A command_dict N/A name N/A N/A command_dict N/A command_dict N/A name N/A N/A command_dict N/A N/A names N/A -1 commands N/A N/A