fix subshell returns
This commit is contained in:
parent
4b6246096d
commit
335d67c9d2
|
@ -54,8 +54,8 @@ class CommandPrompt(BasePrompt):
|
||||||
session=self.manager.session,
|
session=self.manager.session,
|
||||||
create_ok=True
|
create_ok=True
|
||||||
)
|
)
|
||||||
res = self.commands['_playlist'].start()
|
self.commands['_playlist'].start()
|
||||||
return True and res
|
return True
|
||||||
|
|
||||||
|
|
||||||
def start(): # pragma: no cover
|
def start(): # pragma: no cover
|
||||||
|
|
|
@ -35,12 +35,10 @@ class _playlist(BasePrompt):
|
||||||
return self._commands
|
return self._commands
|
||||||
|
|
||||||
def process(self, cmd, *parts):
|
def process(self, cmd, *parts):
|
||||||
res = True
|
|
||||||
if cmd in self.commands:
|
if cmd in self.commands:
|
||||||
res = self.commands[cmd](parts)
|
return True if self.commands[cmd](parts) else False
|
||||||
else:
|
print(f"Command not understood: {cmd}")
|
||||||
print(f"Command not understood: {cmd}")
|
return True
|
||||||
return res is True
|
|
||||||
|
|
||||||
def show(self, parts):
|
def show(self, parts):
|
||||||
print(self.parent.playlist)
|
print(self.parent.playlist)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user