Skip to content

Added public API for attaching/detaching a subcommand with an existing parser.#1623

Merged
kmvanbrunt merged 21 commits intomainfrom
parser_attaching
Apr 4, 2026
Merged

Added public API for attaching/detaching a subcommand with an existing parser.#1623
kmvanbrunt merged 21 commits intomainfrom
parser_attaching

Conversation

@kmvanbrunt
Copy link
Copy Markdown
Member

No description provided.

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

codecov bot commented Apr 3, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.57%. Comparing base (bf86bd0) to head (f8d032f).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1623   +/-   ##
=======================================
  Coverage   99.57%   99.57%           
=======================================
  Files          21       21           
  Lines        4721     4743   +22     
=======================================
+ Hits         4701     4723   +22     
  Misses         20       20           
Flag Coverage Δ
unittests 99.57% <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.

@kmvanbrunt kmvanbrunt marked this pull request as draft April 4, 2026 06:59
@kmvanbrunt kmvanbrunt marked this pull request as ready for review April 4, 2026 17:27
class of it.
- Removed `set_ap_completer_type()` and `get_ap_completer_type()` since `ap_completer_type` is
now a public member of `Cmd2ArgumentParser`.
- Moved `set_parser_prog()` to `Cmd2ArgumentParser.update_prog()`.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Should we update anything in the documentation in relation to this PR? Perhaps in the migration guide for 4.x?

@kmvanbrunt kmvanbrunt merged commit 0658d44 into main Apr 4, 2026
33 checks passed
@kmvanbrunt kmvanbrunt deleted the parser_attaching branch April 4, 2026 19:06
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