mirror of
https://github.com/mvt-project/mvt.git
synced 2024-06-26 14:28:54 +00:00
Added finish() method to Command class
This commit is contained in:
parent
2fe8b58c09
commit
3fb37b4f30
|
@ -136,6 +136,9 @@ class Command(object):
|
||||||
def module_init(self, module: Callable) -> None:
|
def module_init(self, module: Callable) -> None:
|
||||||
raise NotImplementedError
|
raise NotImplementedError
|
||||||
|
|
||||||
|
def finish(self) -> None:
|
||||||
|
raise NotImplementedError
|
||||||
|
|
||||||
def run(self) -> None:
|
def run(self) -> None:
|
||||||
self._create_storage()
|
self._create_storage()
|
||||||
self._add_log_file_handler(self.log)
|
self._add_log_file_handler(self.log)
|
||||||
|
@ -176,3 +179,8 @@ class Command(object):
|
||||||
|
|
||||||
self._store_timeline()
|
self._store_timeline()
|
||||||
self._store_info()
|
self._store_info()
|
||||||
|
|
||||||
|
try:
|
||||||
|
self.finish()
|
||||||
|
except NotImplementedError:
|
||||||
|
pass
|
||||||
|
|
Loading…
Reference in New Issue
Block a user