File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed
addons/quentincaffeino/console/src Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -99,11 +99,8 @@ func set_text(text, move_caret_to_end = true):
9999func execute (input ):
100100 Console .write_line ('[color=#999999]$[/color] ' + input )
101101
102- # @var PoolStringArray
103- var rawCommands = RegExLib .split (RECOMMANDS_SEPARATOR , input )
104-
105102 # @var Dictionary[]
106- var parsedCommands = _parse_commands (rawCommands )
103+ var parsedCommands = _parse_commands (input )
107104
108105 for parsedCommand in parsedCommands :
109106 if parsedCommand .name .length ():
@@ -123,11 +120,13 @@ func execute(input):
123120
124121
125122# @static
126- # @param PoolStringArray rawCommands
127- # @returns Array
128- static func _parse_commands (rawCommands ):
123+ # @param String input
124+ # @returns Array<Dictionary>
125+ static func _parse_commands (input ):
129126 var resultCommands = []
130127
128+ # @var PoolStringArray
129+ var rawCommands = RegExLib .split (RECOMMANDS_SEPARATOR , input )
131130 for rawCommand in rawCommands :
132131 if rawCommand :
133132 resultCommands .append (_parse_command (rawCommand ))
You can’t perform that action at this time.
0 commit comments