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

Method _build_yaml_header

src/specify_cli/integrations/base.py:1143–1162  ·  view source on GitHub ↗

Build the base YAML header.

(cls, title: str, description: str)

Source from the content-addressed store, hash-verified

1141
1142 @classmethod
1143 def _build_yaml_header(cls, title: str, description: str) -> dict[str, Any]:
1144 """Build the base YAML header."""
1145 header = {
1146 "version": "1.0.0",
1147 "title": title,
1148 "description": description,
1149 "author": {"contact": "spec-kit"},
1150 "parameters": [
1151 {
1152 "key": "args",
1153 "input_type": "string",
1154 "requirement": "optional",
1155 "default": "",
1156 "description": "User input passed to the command.",
1157 }
1158 ],
1159 "extensions": [{"type": "builtin", "name": "developer"}],
1160 "activities": ["Spec-Driven Development"],
1161 }
1162 return header
1163
1164 @classmethod
1165 def _render_yaml(cls, title: str, description: str, body: str, source_id: str) -> str:

Callers 1

_render_yamlMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected