1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-07 17:24:17 +00:00

adding more info on actions with verbose (#83)

This commit is contained in:
deadc0de6
2019-02-04 21:57:31 +01:00
parent 9d081957fc
commit 7f2294ee8b
4 changed files with 19 additions and 11 deletions

View File

@@ -32,10 +32,15 @@ class Cmd:
class Action(Cmd):
def __init__(self, key, action, *args):
def __init__(self, key, kind, action, *args):
super(Action, self).__init__(key, action)
self.kind = kind
self.args = args
def __str__(self):
out = '{}: \"{}\" with args: {}'
return out.format(self.key, self.action, self.args)
def execute(self):
"""execute the action in the shell"""
ret = 1