Skip to content

cmd2 4.0 discussion #1538

@tleonhardt

Description

@tleonhardt

Now that cmd2 3.0.0 is out, it's time to start discussing what we would like to see in the 4.0.0 release for cmd2.

Features @kmvanbrunt and I have discussed for 4.x include:

  • Remove explicit dependency on Python's built-in cmd module, but retain backwards compatibility (PR Remove dependency on Python's built-in cmd module #1539)
  • Remove dependency on Python's built-in readline module and replace it with a dependency on prompt-toolkit which is a pure Python replacement for GNU Readline
  • Support adding a bottom toolbar to display real-time status via prompt-toolkit
  • Consider implementing syntax that is essentially compatible with Typer for defining command arguments based on type hints. A user documented how to do this in Discussion A plugin for Typer command define within cmd2 #1530.
  • Investigate addingprompt-toolkit syntax highlighting of text entered by users, at least for command names
  • Investigate adding support for prompt-toolkit Input Validation
  • Consider migrating documentation to Zensical which is essentially MkDocs 2.0, but implemented in Rust and much faster

Moving to prompt-toolkit and no longer depending on cmd will be a large paradigm shift for cmd2. But this will open doors for easier and more consistent cross-platform support as well as being able to provide some more advanced features that we cannot now.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions