MCPcopy Create free account
hub / github.com/StanfordPL/stoke / handle

Method handle

tools/scripts/completion_generator.py:124–133  ·  view source on GitHub ↗
(self, command)

Source from the content-addressed store, hash-verified

122 super(ZshHandler, self).__init__("_stoke")
123
124 def handle(self, command):
125 def aux(command):
126 if command.has_subcommands():
127 self.write_cmd(command)
128 for sub in command.subcommands:
129 aux(sub)
130 else:
131 self.write_arguments(command.full_name(), command.arguments)
132 self.write_header()
133 aux(command)
134
135 def write_cmd(self, command):
136 assert len(command.arguments) == 0

Callers

nothing calls this directly

Calls 1

write_headerMethod · 0.95

Tested by

no test coverage detected