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

Function get_distros

explainshell/web/__init__.py:75–82  ·  view source on GitHub ↗

Return the (distro, release) pairs snapshotted at app startup. The DB is read-only and baked into the Docker image in prod, so the snapshot is valid for the lifetime of the process. Rebuilding the DB in dev requires a server restart to pick up new distros.

()

Source from the content-addressed store, hash-verified

73
74
75def get_distros() -> list[tuple[str, str]]:
76 """Return the (distro, release) pairs snapshotted at app startup.
77
78 The DB is read-only and baked into the Docker image in prod, so the
79 snapshot is valid for the lifetime of the process. Rebuilding the
80 DB in dev requires a server restart to pick up new distros.
81 """
82 return current_app.config["STARTUP_DISTROS"]
83
84
85def create_app(db_path=None):

Callers 6

_is_known_distroFunction · 0.90
_get_distro_releaseFunction · 0.90
inject_distrosFunction · 0.90
manpage_releasesFunction · 0.90
_handle_explain_cmdFunction · 0.90
_handle_explain_programFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected