Coverage for /usr/local/lib/python3.12/site-packages/prefect/settings/models/cli.py: 100%
9 statements
« prev ^ index » next coverage.py v7.10.6, created at 2025-12-05 11:21 +0000
« prev ^ index » next coverage.py v7.10.6, created at 2025-12-05 11:21 +0000
1from typing import ClassVar, Optional 1a
3from pydantic import Field 1a
4from pydantic_settings import SettingsConfigDict 1a
6from prefect.settings.base import ( 1a
7 PrefectBaseSettings,
8 build_settings_config,
9)
12class CLISettings(PrefectBaseSettings): 1a
13 """
14 Settings for controlling CLI behavior
15 """
17 model_config: ClassVar[SettingsConfigDict] = build_settings_config(("cli",)) 1a
19 colors: bool = Field( 1a
20 default=True,
21 description="If True, use colors in CLI output. If `False`, output will not include colors codes.",
22 )
24 prompt: Optional[bool] = Field( 1a
25 default=None,
26 description="If `True`, use interactive prompts in CLI commands. If `False`, no interactive prompts will be used. If `None`, the value will be dynamically determined based on the presence of an interactive-enabled terminal.",
27 )
29 wrap_lines: bool = Field( 1a
30 default=True,
31 description="If `True`, wrap text by inserting new lines in long lines in CLI output. If `False`, output will not be wrapped.",
32 )