projects
/
hooke.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Rework Plugin.commands() to include _setup_commands().
[hooke.git]
/
hooke
/
plugin
/
cut.py
diff --git
a/hooke/plugin/cut.py
b/hooke/plugin/cut.py
index f3c13c9914c0f4e2b407111149ae7dba02acfcc0..7a2e5ead3e3c24e08113b1d9bd3c1adda15ee8bc 100644
(file)
--- a/
hooke/plugin/cut.py
+++ b/
hooke/plugin/cut.py
@@
-29,9
+29,8
@@
from ..plugin import Plugin
class CutPlugin (Plugin):
def __init__(self):
super(CutPlugin, self).__init__(name='cut')
-
- def commands(self):
- return [CutCommand()]
+ self._commands = [CutCommand()]
+ self._setup_commands()
# Define common or complicated arguments