Skip to content

CLIDiagnosticConfig

🛈 DocStrings

CLI configuration for running diagnostics without full LSP.

Parameters:

Name Type Description Default
command str

Command to run (may differ from LSP command)

required
args list[str]

Arguments with {files} placeholder for file paths

required
output_format Literal['json', 'text']

Expected output format

'json'
Source code in src/anyenv/lsp_servers/_base.py
@dataclass
class CLIDiagnosticConfig:
    """CLI configuration for running diagnostics without full LSP.

    Args:
        command: Command to run (may differ from LSP command)
        args: Arguments with {files} placeholder for file paths
        output_format: Expected output format
    """

    command: str
    args: list[str]
    output_format: Literal["json", "text"] = "json"

:fa-brands-github: Show source on GitHub