Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Command attributes #448

Merged
merged 20 commits into from
Apr 27, 2017
Merged

Command attributes #448

merged 20 commits into from
Apr 27, 2017

Conversation

alexander-yevsyukov
Copy link
Contributor

@alexander-yevsyukov alexander-yevsyukov commented Apr 27, 2017

This PR adds key-value map for CommandContext and provides utilities for working with such custom attributes.

Other changes:

  • instance() methods were renamed to getInstance() for consistency.
  • Values utility class renamed to Wrappers.
  • Introduced Wrapper class which is a converter and packer/unpacker.

Also renamed `Values` to `Wrappers` to better reflect the nature.
Also:
* Eliminated `Classes` utility class moving its method to where they were used.
Even though these methods are internal API, consistent naming is easier
to understand and would not require renaming should be open some of
these methods.
@codecov
Copy link

codecov bot commented Apr 27, 2017

Codecov Report

Merging #448 into master will decrease coverage by 0.03%.
The diff coverage is 92.76%.

@@             Coverage Diff              @@
##             master     #448      +/-   ##
============================================
- Coverage      91.7%   91.66%   -0.04%     
- Complexity     2843     2870      +27     
============================================
  Files           306      310       +4     
  Lines          9247     9386     +139     
  Branches        647      651       +4     
============================================
+ Hits           8480     8604     +124     
- Misses          583      595      +12     
- Partials        184      187       +3

Copy link
Contributor

@armiol armiol left a comment

Choose a reason for hiding this comment

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

@alexander-yevsyukov LGTM except for low coverage. But I think the bot tells the same.

@alexander-yevsyukov alexander-yevsyukov merged commit e6e86de into master Apr 27, 2017
@alexander-yevsyukov alexander-yevsyukov deleted the command-attributes branch April 27, 2017 13:42
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