Repository navigation
cmd2 4.x MIgration - #224
Merged
Merged
Conversation
cmd2 4.x replaces readline with prompt-toolkit, so gnureadline and pyreadline3 are no longer pulled in and the README workarounds for unsupported readline builds are removed. - Bump cmd2 to ^4.3.1 and prompt-toolkit to ^3.0.53 (cmd2's minimum) - Pass the intro banner via Cmd.__init__, since cmd2 now overwrites self.intro during initialisation and the banner was silently lost - Use DEFAULT_PROMPT rather than a prompt class attribute, for the same reason - Set DEFAULT_CATEGORY so help lists RTR commands separately from cmd2's built-in commands - Fix broken cmd2 scripting documentation links in the README Co-Authored-By: Claude Code <noreply@anthropic.com>
Co-Authored-By: Claude Code <noreply@anthropic.com>
jduin-cs
approved these changes
Oct 30, 2026
This branch was successfully deployed
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR migrates us from a legacy build of cmd2 (in the 2.x range) to 4.x. Key highlights:
gnureadline, since cmd2 isprompt-toolkit-native now.New version will be 3.7.0.