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

Function _ensure_run_dir

explainshell/manager.py:475–481  ·  view source on GitHub ↗

Lazily create the run dir for commands that need one. Cached on ctx.

(ctx: click.Context)

Source from the content-addressed store, hash-verified

473
474
475def _ensure_run_dir(ctx: click.Context) -> str:
476 """Lazily create the run dir for commands that need one. Cached on ctx."""
477 run_dir = ctx.obj.get("run_dir")
478 if run_dir is None:
479 run_dir = _attach_run_log(ctx.obj["log_level"])
480 ctx.obj["run_dir"] = run_dir
481 return run_dir
482
483
484# ---------------------------------------------------------------------------

Callers 3

extractFunction · 0.85
diff_db_cmdFunction · 0.85
diff_extractors_cmdFunction · 0.85

Calls 1

_attach_run_logFunction · 0.85

Tested by

no test coverage detected