MCPcopy Index your code
hub / github.com/commitizen-tools/commitizen / exit_code_from_str_or_skip

Function exit_code_from_str_or_skip

commitizen/cli.py:631–636  ·  view source on GitHub ↗
(s: str)

Source from the content-addressed store, hash-verified

629 """
630
631 def exit_code_from_str_or_skip(s: str) -> ExitCode | None:
632 try:
633 return ExitCode.from_str(s)
634 except (KeyError, ValueError):
635 out.warn(f"WARN: no_raise value `{s}` is not a valid exit code. Skipping.")
636 return None
637
638 return [
639 code.value

Callers 1

parse_no_raiseFunction · 0.85

Calls 1

from_strMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…