added shell service and fixed service
This commit is contained in:
parent
53e2f2aad0
commit
90c41027c6
2 changed files with 21 additions and 8 deletions
|
|
@ -1,14 +1,13 @@
|
|||
|
||||
class Service:
|
||||
def __init__(self):
|
||||
pass
|
||||
def __init__(self, parser):
|
||||
self.parser = parser
|
||||
|
||||
def _execute(self):
|
||||
self.pre_execute()
|
||||
self.execute()
|
||||
self.parse_result()
|
||||
self.handle_result()
|
||||
|
||||
|
||||
def execute(self):
|
||||
pass
|
||||
|
||||
|
|
@ -16,7 +15,7 @@ class Service:
|
|||
pass
|
||||
|
||||
def parse_result(self):
|
||||
pass
|
||||
self.parser._parse()
|
||||
|
||||
def handle_result(self):
|
||||
pass
|
||||
Loading…
Add table
Add a link
Reference in a new issue