X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=helpers%2Faction.py;h=97873a0029d8e24e8a93b239174b305ab76bdd65;hb=ba9ea93a0f52178d24a606fddc2acc5dc85b7ff2;hp=8a69fae3a967f4dd020f7d037e89415a7de072e3;hpb=e5e6409426e3eb1918318973372568081e6d9dd6;p=perso%2FImmae%2FProjets%2FPython%2FMusicSampler.git 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: 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