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

Define all commands using a LeoCommand class #581

Closed
edreamleo opened this issue Nov 19, 2017 · 3 comments
Closed

Define all commands using a LeoCommand class #581

edreamleo opened this issue Nov 19, 2017 · 3 comments
Assignees
Labels
Enhancement Won'tDo Issues that EKR won't do

Comments

@edreamleo
Copy link
Member

Perhaps all command methods should be defined in subclasses of a new LeoCommand class. This class might be decorated with, say,

@command_class('class name', 'optional_commander_ivar')

The optional arg would inject the class's command method into the appropriate commanders, This would remove a long-standing hangnail.

The g.command decorator creates most classes, but there are too many behind-the-scenes complications, including g.cmd_instance_dict. The LeoCommand class might hide such details. Or not.

@edreamleo edreamleo self-assigned this Nov 19, 2017
@edreamleo edreamleo added the EKR label Nov 19, 2017
@tbnorth
Copy link
Contributor

tbnorth commented Nov 19, 2017 via email

@edreamleo
Copy link
Member Author

edreamleo commented Nov 19, 2017 via email

@edreamleo edreamleo changed the title Define all commands using a LeoCommand base class Define all commands using a LeoCommand class? Nov 21, 2017
@edreamleo
Copy link
Member Author

edreamleo commented Nov 25, 2017

I am going to close this issue. It was a bad idea. Furthermore, #589 accomplishes even more, and more simply.

@edreamleo edreamleo changed the title Define all commands using a LeoCommand class? Define all commands using a LeoCommand class Dec 4, 2017
@edreamleo edreamleo added Won'tDo Issues that EKR won't do and removed First labels Jan 25, 2018
@edreamleo edreamleo removed the EKR label Jan 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement Won'tDo Issues that EKR won't do
Projects
None yet
Development

No branches or pull requests

2 participants