MCPcopy
hub / github.com/pallets/flask / make_shell_context

Method make_shell_context

src/flask/app.py:534–544  ·  view source on GitHub ↗

Returns the shell context for an interactive shell for this application. This runs all the registered shell context processors. .. versionadded:: 0.11

(self)

Source from the content-addressed store, hash-verified

532 context.update(orig_ctx)
533
534 def make_shell_context(self) -> dict[str, t.Any]:
535 """Returns the shell context for an interactive shell for this
536 application. This runs all the registered shell context
537 processors.
538
539 .. versionadded:: 0.11
540 """
541 rv = {"app": self, "g": g}
542 for processor in self.shell_context_processors:
543 rv.update(processor())
544 return rv
545
546 def run(
547 self,

Callers 1

shell_commandFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected