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

docstring

This commit is contained in:
deadc0de6
2019-02-07 21:54:31 +01:00
parent 06203cfb94
commit f9be717ff3
17 changed files with 86 additions and 35 deletions

View File

@@ -16,6 +16,10 @@ from dotdrop.logger import Logger
class Cmd:
def __init__(self, key, action):
"""constructor
@key: action key
@action: action string
"""
self.key = key
self.action = action
self.log = Logger()
@@ -33,6 +37,12 @@ class Cmd:
class Action(Cmd):
def __init__(self, key, kind, action, *args):
"""constructor
@key: action key
@kind: type of action (pre or post)
@action: action string
@args: action arguments
"""
super(Action, self).__init__(key, action)
self.kind = kind
self.args = args