Skip to content

Made more of the subcommand management API public.#1643

Merged
kmvanbrunt merged 5 commits intomainfrom
subcommand_management_api
Apr 22, 2026
Merged

Made more of the subcommand management API public.#1643
kmvanbrunt merged 5 commits intomainfrom
subcommand_management_api

Conversation

@kmvanbrunt
Copy link
Copy Markdown
Member

No description provided.

@kmvanbrunt kmvanbrunt requested a review from tleonhardt as a code owner April 21, 2026 20:09
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 21, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.51%. Comparing base (14d91a7) to head (1381c72).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1643   +/-   ##
=======================================
  Coverage   99.51%   99.51%           
=======================================
  Files          21       21           
  Lines        4732     4754   +22     
=======================================
+ Hits         4709     4731   +22     
  Misses         23       23           
Flag Coverage Δ
unittests 99.51% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Comment thread cmd2/argparse_utils.py
self.epilog: RenderableType | None # type: ignore[assignment]

def _get_subparsers_action(self) -> "argparse._SubParsersAction[Cmd2ArgumentParser]":
def get_subparsers_action(self) -> "argparse._SubParsersAction[Cmd2ArgumentParser]":
Copy link
Copy Markdown
Member

@tleonhardt tleonhardt Apr 21, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These new APIs should probably be documented in the CHANGELOG to aid in developer discoverability.

tleonhardt
tleonhardt previously approved these changes Apr 21, 2026
tleonhardt
tleonhardt previously approved these changes Apr 22, 2026
@kmvanbrunt kmvanbrunt changed the title Making more of the subcommand management API public. Made more of the subcommand management API public. Apr 22, 2026
@kmvanbrunt kmvanbrunt merged commit 74a2889 into main Apr 22, 2026
33 checks passed
@kmvanbrunt kmvanbrunt deleted the subcommand_management_api branch April 22, 2026 05:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants