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

Function show_mappings

explainshell/manager.py:1148–1153  ·  view source on GitHub ↗

List command->manpage mappings.

(ctx: click.Context, prefix: str | None)

Source from the content-addressed store, hash-verified

1146@click.option("--prefix", default=None, help="Filter by source prefix.")
1147@click.pass_context
1148def show_mappings(ctx: click.Context, prefix: str | None) -> None:
1149 """List command->manpage mappings."""
1150 s = store.Store(_require_db(ctx, must_exist=True), read_only=True)
1151 for src, dst in s.mappings():
1152 if prefix is None or dst.startswith(prefix):
1153 click.echo(f"{src} -> {dst}")
1154
1155
1156@show.command("stats")

Callers

nothing calls this directly

Calls 2

mappingsMethod · 0.95
_require_dbFunction · 0.85

Tested by

no test coverage detected