MCPcopy Create free account
hub / github.com/mlco2/codecarbon / _version_callback

Function _version_callback

codecarbon/cli/main.py:50–53  ·  view source on GitHub ↗
(value: bool)

Source from the content-addressed store, hash-verified

48
49
50def _version_callback(value: bool) -> None:
51 if value:
52 print(f"{__app_name__} v{__version__}")
53 raise typer.Exit()
54
55
56@codecarbon.callback()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…