MCPcopy
hub / github.com/github/spec-kit / _resolve

Method _resolve

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

Resolve ``{{ ... }}`` expressions in string config values.

(value: Any, context: StepContext)

Source from the content-addressed store, hash-verified

228
229 @staticmethod
230 def _resolve(value: Any, context: StepContext) -> Any:
231 """Resolve ``{{ ... }}`` expressions in string config values."""
232 if isinstance(value, str) and "{{" in value:
233 return evaluate_expression(value, context)
234 return value
235
236 @classmethod
237 def _resolve_bool(cls, value: Any, context: StepContext) -> bool:

Callers 2

executeMethod · 0.95
_resolve_boolMethod · 0.80

Calls 1

evaluate_expressionFunction · 0.90

Tested by

no test coverage detected