diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2017-08-07 20:40:32 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2017-08-08 00:27:28 -0400 |
commit | 58811b5c4488ee19e707254a7710d0c705900d1e (patch) | |
tree | 1c52c2069fa2b64fbe5789af9afba522ade73882 /klippy/msgproto.py | |
parent | 86a762b2b722057773cd4a4b035c92f0a17607b9 (diff) | |
download | kutter-58811b5c4488ee19e707254a7710d0c705900d1e.tar.gz kutter-58811b5c4488ee19e707254a7710d0c705900d1e.tar.xz kutter-58811b5c4488ee19e707254a7710d0c705900d1e.zip |
console: Add LIST command that shows available commands and variables
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/msgproto.py')
-rw-r--r-- | klippy/msgproto.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/klippy/msgproto.py b/klippy/msgproto.py index 259271e2..135ff358 100644 --- a/klippy/msgproto.py +++ b/klippy/msgproto.py @@ -183,6 +183,7 @@ class MessageParser: error = error def __init__(self): self.unknown = UnknownFormat() + self.command_ids = [] self.messages_by_id = {} self.messages_by_name = {} self.static_strings = {} @@ -310,6 +311,7 @@ class MessageParser: data = json.loads(data) messages = data.get('messages') commands = data.get('commands') + self.command_ids = commands responses = data.get('responses') self._init_messages(messages, commands+responses) static_strings = data.get('static_strings', {}) |