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

Method _resolve_bool

src/specify_cli/workflows/steps/init/__init__.py:237–242  ·  view source on GitHub ↗

Coerce a config value (possibly an expression) to a boolean.

(cls, value: Any, context: StepContext)

Source from the content-addressed store, hash-verified

235
236 @classmethod
237 def _resolve_bool(cls, value: Any, context: StepContext) -> bool:
238 """Coerce a config value (possibly an expression) to a boolean."""
239 resolved = cls._resolve(value, context)
240 if isinstance(resolved, str):
241 return resolved.strip().lower() in ("true", "1", "yes")
242 return bool(resolved)
243
244 @staticmethod
245 def _run_init(

Callers 1

executeMethod · 0.95

Calls 1

_resolveMethod · 0.80

Tested by

no test coverage detected