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

Method _human_title

src/specify_cli/integrations/base.py:1130–1139  ·  view source on GitHub ↗

Convert an identifier to a human-readable title. Strips a leading ``speckit.`` prefix and replaces ``.``, ``-``, and ``_`` with spaces before title-casing.

(identifier: str)

Source from the content-addressed store, hash-verified

1128
1129 @staticmethod
1130 def _human_title(identifier: str) -> str:
1131 """Convert an identifier to a human-readable title.
1132
1133 Strips a leading ``speckit.`` prefix and replaces ``.``, ``-``,
1134 and ``_`` with spaces before title-casing.
1135 """
1136 text = identifier
1137 if text.startswith("speckit."):
1138 text = text[len("speckit.") :]
1139 return text.replace(".", " ").replace("-", " ").replace("_", " ").title()
1140
1141
1142 @classmethod

Callers 2

setupMethod · 0.95
render_yaml_commandMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected