-
Notifications
You must be signed in to change notification settings - Fork 164
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
contrib: ptdrgn: remove copied run_interactive()
The new drgn.internal.repl module exports a convenient interact() method, which accepts a banner and a namespace. So we can now drop-in the prompt_toolkit embed function as an implementation of interact(), rather than copying the run_interactive function and modifying it. This does mean that the readline configuration steps from run_interactive(), which had been stripped from this version, will be run. But honestly, there's not much harm in configuring readline, because prompt_toolkit won't use it anyway. It's much nicer to re-use the existing run_interactive() function so that we don't need to modify this script as it changes. Signed-off-by: Stephen Brennan <[email protected]>
- Loading branch information
Showing
1 changed file
with
6 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters