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

Method commands_dest

src/specify_cli/integrations/base.py:405–422  ·  view source on GitHub ↗

Return the absolute path to the commands output directory. Derived from ``config["folder"]`` and ``config["commands_subdir"]``. Raises ``ValueError`` if ``config`` or ``folder`` is missing.

(self, project_root: Path)

Source from the content-addressed store, hash-verified

403 return set()
404
405 def commands_dest(self, project_root: Path) -> Path:
406 """Return the absolute path to the commands output directory.
407
408 Derived from ``config["folder"]`` and ``config["commands_subdir"]``.
409 Raises ``ValueError`` if ``config`` or ``folder`` is missing.
410 """
411 if not self.config:
412 raise ValueError(
413 f"{type(self).__name__}.config is not set; integration "
414 "subclasses must define a non-empty 'config' mapping."
415 )
416 folder = self.config.get("folder")
417 if not folder:
418 raise ValueError(
419 f"{type(self).__name__}.config is missing required 'folder' entry."
420 )
421 subdir = self.config.get("commands_subdir", "commands")
422 return project_root / folder / subdir
423
424 # -- File operations — granular primitives for setup() ----------------
425

Calls 1

getMethod · 0.45