blob: db0d261904f547c133ff57d9499465af802067dc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
import transport
class Command:
def __init__(self, transport: transport.Transport):
raise NotImplemented
def execute(self, **kwargs):
raise NotImplemented
class NotifyCommand(Command):
def __init__(self, transport: transport.SshTransport):
self._transport = transport
def execute(self, msg: str, **kwargs):
self._transport.execHandleStderror(f'notify-send "{msg}"')
|