MCPcopy Index your code
hub / github.com/github/spec-kit / _ensure_usable

Method _ensure_usable

src/specify_cli/extensions/__init__.py:930–944  ·  view source on GitHub ↗
(skills_dir: Path)

Source from the content-addressed store, hash-verified

928 )
929
930 def _ensure_usable(skills_dir: Path) -> Optional[Path]:
931 try:
932 skills_dir.mkdir(parents=True, exist_ok=True)
933 if not skills_dir.is_dir():
934 raise NotADirectoryError(f"{skills_dir} is not a directory")
935 except (OSError, ValueError) as exc:
936 _print_cli_warning(
937 "resolve",
938 "skills directory",
939 str(skills_dir),
940 exc,
941 continuing="Continuing without skill registration.",
942 )
943 return None
944 return skills_dir
945
946 try:
947 skills_dir = resolve_active_skills_dir(self.project_root)

Callers

nothing calls this directly

Calls 1

_print_cli_warningFunction · 0.85

Tested by

no test coverage detected