Skip to content

Conversation

kmvanbrunt
Copy link
Member

@kmvanbrunt kmvanbrunt commented Sep 1, 2020

  • Breaking Changes
    • CommandSet.on_unregister() is now called as first step in unregistering a CommandSet and not the last. CommandSet.on_unregistered() is now the last step.
  • Enhancements
    • Added CommandSet.on_registered(). This is called by cmd2.Cmd after a CommandSet is registered and all its commands have been added to the CLI.
    • Added CommandSet.on_unregistered(). This is called by cmd2.Cmd after a CommandSet is unregistered and all its commands have been removed from the CLI.

@codecov
Copy link

codecov bot commented Sep 1, 2020

Codecov Report

Merging #990 into master will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #990   +/-   ##
=======================================
  Coverage   97.83%   97.84%           
=======================================
  Files          22       22           
  Lines        4533     4540    +7     
=======================================
+ Hits         4435     4442    +7     
  Misses         98       98           
Impacted Files Coverage Δ
cmd2/cmd2.py 97.21% <100.00%> (+<0.01%) ⬆️
cmd2/command_definition.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 36b0b75...85ad319. Read the comment docs.

tleonhardt
tleonhardt previously approved these changes Sep 2, 2020
@kmvanbrunt kmvanbrunt self-assigned this Sep 2, 2020
@kmvanbrunt kmvanbrunt changed the title Added on_registered() callback to CommandSet Added callbacks to CommandSet Sep 3, 2020
anselor
anselor previously approved these changes Sep 3, 2020
Copy link
Contributor

@anselor anselor left a comment

Choose a reason for hiding this comment

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

Looks good.

@kmvanbrunt kmvanbrunt merged commit e7bf6c1 into master Sep 4, 2020
@kmvanbrunt kmvanbrunt deleted the on_registered branch September 4, 2020 02:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants