Command history missing for default commands #1387
Answered
by
kmvanbrunt
Sripadvallabh
asked this question in
Q&A
-
Due to some requirement, i have made a default command by overriding the default() function as shown below:
Because of this, most of the time users would be invoking 'run' command directly with arguments instead of calling 'run ':
The run command doesn't have argparse options so it works seamlessly. But unfortunately, these commands don't show up in the history when i restart my application & check using 'history' command or by Up & down arrows. May i know if this is supported? |
Beta Was this translation helpful? Give feedback.
Answered by
kmvanbrunt
Nov 30, 2024
Replies: 1 comment 1 reply
-
Call one of the following:
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Sripadvallabh
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Call one of the following:
self.onecmd_plus_hooks(f"run {stmt.raw}")
self.onecmd(f"run {stmt.raw}")