mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2024-11-22 10:51:32 +00:00
Fix TerminalCommands parsing unix-style arguments incorrectly
This commit is contained in:
parent
0038663bc6
commit
77fabf28f6
@ -3,6 +3,7 @@
|
||||
|
||||
from abc import ABC
|
||||
from re import match
|
||||
from shlex import split
|
||||
|
||||
from tfw.config.logs import logging
|
||||
|
||||
@ -57,7 +58,7 @@ class TerminalCommands(ABC):
|
||||
return match(self._command_method_regex, string)
|
||||
|
||||
def callback(self, history):
|
||||
parts = history[-1].split()
|
||||
parts = split(history[-1])
|
||||
command = parts[0]
|
||||
if command in self.command_implemetations.keys():
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user