Method: flask.cli.get_version
Calls: 20, Exceptions: 0, Paths: 2Back
Path 1: 19 calls (0.95)
Context (19)
Option (19)
False (19)
None (19)
1def get_version(ctx, param, value):
2 if not value or ctx.resilient_parsing:
3 return
4
5 import werkzeug
6 from . import __version__
7
8 click.echo(
9 f"Python {platform.python_version()}\n"
10 f"Flask {__version__}\n"
11 f"Werkzeug {werkzeug.__version__}",
12 color=ctx.color,
13 )
14 ctx.exit()
Path 2: 1 calls (0.05)
test_get_version.
None (1)
'test' (1)
1def get_version(ctx, param, value):
2 if not value or ctx.resilient_parsing:
3 return
4
5 import werkzeug
6 from . import __version__
7
8 click.echo(
9 f"Python {platform.python_version()}\n"
10 f"Flask {__version__}\n"
11 f"Werkzeug {werkzeug.__version__}",
12 color=ctx.color,
13 )
14 ctx.exit()