aboutsummaryrefslogtreecommitdiff
path: root/helpers/action.py
diff options
context:
space:
mode:
Diffstat (limited to 'helpers/action.py')
-rw-r--r--helpers/action.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/helpers/action.py b/helpers/action.py
index 8a69fae..97873a0 100644
--- a/helpers/action.py
+++ b/helpers/action.py
@@ -28,9 +28,12 @@ class Action:
28 return True 28 return True
29 29
30 def run(self): 30 def run(self):
31 print(getattr(self, self.action + "_print")(**self.arguments)) 31 print(self.description())
32 return getattr(self, self.action)(**self.arguments) 32 return getattr(self, self.action)(**self.arguments)
33 33
34 def description(self):
35 return getattr(self, self.action + "_print")(**self.arguments)
36
34 def command(self, command = "", **kwargs): 37 def command(self, command = "", **kwargs):
35 pass 38 pass
36 39