MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / precmd

Method precmd

tools/python-3.11.9-amd64/Lib/cmd.py:150–155  ·  view source on GitHub ↗

Hook method executed just before the command line is interpreted, but after the input prompt is generated and issued.

(self, line)

Source from the content-addressed store, hash-verified

148
149
150 def precmd(self, line):
151 """Hook method executed just before the command line is
152 interpreted, but after the input prompt is generated and issued.
153
154 """
155 return line
156
157 def postcmd(self, stop, line):
158 """Hook method executed just after a command dispatch is finished."""

Callers 1

cmdloopMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected