mingw-w64-python-cliff: Apply cmd2 patches

This commit is contained in:
Hiroaki ENDOH
2020-04-07 23:25:23 +09:00
parent 28099d6828
commit 42e2d66e3f
3 changed files with 49 additions and 11 deletions

View File

@@ -0,0 +1,22 @@
--- cliff-3.1.0/cliff/interactive.py 2020-03-27 05:38:14.000000000 +0900
+++ patched-cliff-3.1.0/cliff/interactive.py 2020-04-07 23:08:05.421503100 +0900
@@ -175,9 +175,16 @@ class InteractiveApp(cmd2.Cmd):
statement.parsed.args = ' '.join(sub_argv)
else:
# cmd2 >= 0.9.1 uses shlex and gives us a Statement.
- statement.command = cmd_name
- statement.argv = [cmd_name] + sub_argv
- statement.args = ' '.join(statement.argv)
+ statement = cmd2.Statement(' '.join(sub_argv),
+ raw=statement.raw,
+ command=cmd_name,
+ arg_list=sub_argv,
+ multiline_command=statement.multiline_command,
+ terminator=statement.terminator,
+ suffix=statement.suffix,
+ pipe_to=statement.pipe_to,
+ output=statement.output,
+ output_to=statement.output_to)
return statement
def cmdloop(self):