MCPcopy Create free account
hub / github.com/commitizen-tools/commitizen / required_validator

Function required_validator

commitizen/cz/utils.py:12–15  ·  view source on GitHub ↗
(answer: str, msg: object = None)

Source from the content-addressed store, hash-verified

10
11
12def required_validator(answer: str, msg: object = None) -> str:
13 if not answer:
14 raise exceptions.AnswerRequiredError(msg)
15 return answer
16
17
18def multiple_line_breaker(answer: str, sep: str = "|") -> str:

Callers 1

_parse_subjectFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected