diff options
author | Rodolfo Alonso Hernandez <ralonsoh@redhat.com> | 2020-06-12 15:45:48 +0000 |
---|---|---|
committer | Monty Taylor <mordred@inaugust.com> | 2020-06-12 16:42:56 -0500 |
commit | 8099c98249dfc9caa9cdbac4cbe7afba4279c734 (patch) | |
tree | 0de00afc7fbf9dba5d4362a61834f9f9a23b1bb8 /cliff | |
parent | 6989b47cc234444b7357b47b61c9a9308d0ea06e (diff) | |
download | cliff-8099c98249dfc9caa9cdbac4cbe7afba4279c734.tar.gz |
Remove cap on cmd23.3.0
After [1] and [2], there is no need to cap the version of cmd2.
This will also fix the current "rally_openstack" import problems
experienced in the CI: http://paste.openstack.org/show/794701/
[1]https://review.opendev.org/#/c/712591/
[2]https://review.opendev.org/#/c/734629/
Change-Id: Ie15e3f5058c4bd104978d9f31f0590d6c795024b
Diffstat (limited to 'cliff')
-rw-r--r-- | cliff/interactive.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/cliff/interactive.py b/cliff/interactive.py index 517061e..aca7233 100644 --- a/cliff/interactive.py +++ b/cliff/interactive.py @@ -158,6 +158,16 @@ class InteractiveApp(cmd2.Cmd): ] def precmd(self, statement): + """Hook method executed just before the command is executed by + :meth:`~cmd2.Cmd.onecmd` and after adding it to history. + + :param statement: subclass of str which also contains the parsed input + :return: a potentially modified version of the input Statement object + """ + # NOTE(mordred): The above docstring is copied in from cmd2 because + # current cmd2 has a docstring that sphinx finds if we don't override + # it, and it breaks sphinx. + # Pre-process the parsed command in case it looks like one of # our subcommands, since cmd2 does not handle multi-part # command names by default. |