MCPcopy Index your code
hub / github.com/idank/explainshell / endcommand

Method endcommand

explainshell/matcher.py:461–468  ·  view source on GitHub ↗

end the most recently created command group by popping it from the group stack. groups are created by visitcommand or a nested command

(self)

Source from the content-addressed store, hash-verified

459 return True
460
461 def endcommand(self):
462 """end the most recently created command group by popping it from the
463 group stack. groups are created by visitcommand or a nested command"""
464 assert len(self.group_stack) >= 2, (
465 "groupstack must contain shell and command groups"
466 )
467 g = self.group_stack.pop()
468 logger.info("ending group %s", g)
469
470 def visitcommandsubstitution(self, node, command):
471 kind = self.s[node.pos[0]]

Callers 2

visitnodeendMethod · 0.95
_visitwordMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected