Skip to content

Extract submenus into a new project #375

@kotfu

Description

@kotfu

The submenu feature is nice, but it's very complex. What if we extracted the submenu code into a new GitHub project at https://github.com/python-cmd2/cmd2-submenus, and packaged it in pypi as a separate wheel, something like cmd2-submenus. This would enable:

  1. Easier maintenance of the core cmd2 module
  2. Version dependency between releases of cmd2 and cmd2-submenus. If cmd2-submenus lags behind cmd2 features, users of both modules can make a decision whether they want to most current cmd2 capabilities, or submenu support.
  3. Set a pattern for extensibility of cmd2 via additional packages instead of changes to the core.

I'm willing to take a crack at the extraction of the submenu code if there is interest in pursuing this proposal.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions