Skip to content

Conversation

kmvanbrunt
Copy link
Member

Preventing things like commands that begin with a shortcut

@codecov
Copy link

codecov bot commented Aug 7, 2019

Codecov Report

Merging #755 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #755      +/-   ##
==========================================
+ Coverage    97.3%   97.31%   +<.01%     
==========================================
  Files          13       13              
  Lines        3454     3458       +4     
==========================================
+ Hits         3361     3365       +4     
  Misses         93       93
Impacted Files Coverage Δ
cmd2/cmd2.py 96.74% <100%> (ø) ⬆️

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 cc3d5cd...933e328. Read the comment docs.

shortcuts=shortcuts)

# Verify commands don't have invalid names (like starting with a shortcut)
for cur_cmd in self.get_all_commands():
Copy link
Member

Choose a reason for hiding this comment

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

Yeah this is prudent and I can't think of a better way to validate it.

@tleonhardt tleonhardt merged commit e017028 into master Aug 8, 2019
@tleonhardt tleonhardt deleted the verify_command_names branch August 8, 2019 00:37
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