diff options
Diffstat (limited to 'pyapd/ctl_client.py')
-rw-r--r-- | pyapd/ctl_client.py | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/pyapd/ctl_client.py b/pyapd/ctl_client.py index 8c692f9..d788623 100644 --- a/pyapd/ctl_client.py +++ b/pyapd/ctl_client.py @@ -1,23 +1,29 @@ import json import socket -import guacamole +class ClientCommand(): + help = '' + + def register_arguments(self, parser): + pass -class ClientCommand(guacamole.Command): def send_command(self, cmd): print("Sending command", cmd) s = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) s.connect(self.config.ctl_socket) s.send(json.dumps(cmd).encode()) + def invoked(self): + pass + class Ping(ClientCommand): def get_command(self): return {"command": "ping"} - def invoked(self, ctx): - print(self.get_command) + def invoked(self): + print(self.get_command()) class AddObject(ClientCommand): |