Skip to content

v0.58.0

Choose a tag to compare

@github-actions github-actions released this 01 Dec 08:17
· 229 commits to main since this release
bac505c

Minor Changes

  • #505 31cff49 Thanks @clayroach! - Enhance diagnostics CLI command with new options for CI/CD integration and tooling:

    • --format: Output format selection (json, pretty, text, github-actions)

      • json: Machine-readable JSON output with structured diagnostics and summary
      • pretty: Colored output with context (default, original behavior)
      • text: Plain text output without colors
      • github-actions: GitHub Actions workflow commands for inline PR annotations
    • --strict: Treat warnings as errors (affects exit code)

    • --severity: Filter diagnostics by severity level (comma-separated: error, warning, message)

    • Exit codes: Returns exit code 1 when errors are found (or warnings in strict mode)

    Example usage:

    # JSON output for CI/CD pipelines
    effect-language-service diagnostics --project tsconfig.json --format json
    
    # GitHub Actions with inline annotations
    effect-language-service diagnostics --project tsconfig.json --format github-actions
    
    # Strict mode for CI (fail on warnings)
    effect-language-service diagnostics --project tsconfig.json --strict
    
    # Only show errors
    effect-language-service diagnostics --project tsconfig.json --severity error

    Closes Effect-TS/effect #5180.