MCPcopy
hub / github.com/RUB-NDS/PRET / do_info

Method do_info

pcl.py:222–232  ·  view source on GitHub ↗
(self, arg)

Source from the content-addressed store, hash-verified

220
221 # ------------------------[ info <category> ]-------------------------
222 def do_info(self, arg):
223 if arg in self.entities:
224 entity, desc = self.entities[arg]
225 for location in self.locations:
226 output().raw(desc + " " + self.locations[location])
227 str_send = "*s" + location + "T" # set location type
228 str_send += c.ESC + "*s0U" # set location unit
229 str_send += c.ESC + "*s" + entity + "I" # set inquire entity
230 output().info(self.cmd(str_send))
231 else:
232 self.help_info()
233
234 def help_info(self):
235 print("Show information: info <category>")

Callers

nothing calls this directly

Calls 5

cmdMethod · 0.95
help_infoMethod · 0.95
outputClass · 0.90
rawMethod · 0.80
infoMethod · 0.80

Tested by

no test coverage detected