Clean on KeyboardInterrupt, proper call in shlax Command
This commit is contained in:
parent
5f451a786f
commit
cfe75d2873
@ -45,9 +45,13 @@ class Command(cli2.Command):
|
|||||||
if 'actions' in self:
|
if 'actions' in self:
|
||||||
del self['actions']
|
del self['actions']
|
||||||
|
|
||||||
|
def call(self, *args, **kwargs):
|
||||||
|
self.shlax_target = self['target'].value
|
||||||
|
return self.shlax_target(self.target)
|
||||||
|
|
||||||
def __call__(self, *argv):
|
def __call__(self, *argv):
|
||||||
super().__call__(*argv)
|
super().__call__(*argv)
|
||||||
self['target'].value.output.results(self['target'].value)
|
self.shlax_target.output.results(self.shlax_target)
|
||||||
|
|
||||||
|
|
||||||
class ActionCommand(cli2.Command):
|
class ActionCommand(cli2.Command):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user