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

Cleanup #13

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Cleanup #13

wants to merge 4 commits into from

Conversation

djerius
Copy link
Contributor

@djerius djerius commented Nov 21, 2018

This streamlines a few issues. The major changes are:

  1. Methods are moved from Osprey to Osprey::Role
  2. Method modifiers were run every time option or subcommand was called. They should only need to be run once when the command class is constructed.

@djerius
Copy link
Contributor Author

djerius commented Jan 10, 2019

rebased on current master.

'around' modifiers for _osprey_config, _osprey_options,
_osprey_subcommands need only be applied once for each command class.
this removes the need for a separate subroutine to apply the
modifiers.
…::Osprey::Role

The CLI::Osprey::Role is already getting applied to the command class,
so the application of the _osprey_options, _osprey_config, and
_osprey_subcommands methods can done more naturally there instead of
in an eval() in CLI::Osprey::import.
@djerius
Copy link
Contributor Author

djerius commented Jan 12, 2019

mistakenly pushed version which wasn't based on upstream's master, but upon my test-roles branch

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.

1 participant