]> git.immae.eu Git - perso/Immae/Projets/Python/MusicSampler.git/blobdiff - helpers/action.py
enhancing locks
[perso/Immae/Projets/Python/MusicSampler.git] / helpers / action.py
index 8a69fae3a967f4dd020f7d037e89415a7de072e3..97873a0029d8e24e8a93b239174b305ab76bdd65 100644 (file)
@@ -28,9 +28,12 @@ class Action:
             return True
 
     def run(self):
-        print(getattr(self, self.action + "_print")(**self.arguments))
+        print(self.description())
         return getattr(self, self.action)(**self.arguments)
 
+    def description(self):
+        return getattr(self, self.action + "_print")(**self.arguments)
+
     def command(self, command = "", **kwargs):
         pass