Skip to content

Paper-cut polish: --color, --config, --quiet, exit code docs #25

@jakekaplan

Description

@jakekaplan

Summary

Small UX improvements that make loq feel polished and complete.

Items

1. --color auto|always|never

Standard color control flag.

  • auto (default): detect TTY
  • always: force colors (useful for CI that supports ANSI)
  • never: no colors (useful for piping)

2. --config <path>

Override config file location.

loq check --config /path/to/loq.toml src/

Useful for:

  • Monorepos with multiple configs
  • Testing config changes
  • CI with non-standard layouts

3. --quiet / -q

Suppress all output except errors. Exit code indicates pass/fail.

loq check --quiet src/ && echo "All good"

4. Document exit codes in --help

Add to help output:

EXIT CODES:
    0    All checks passed
    1    Violations found
    2    Runtime error

Tasks

  • Add --color flag with auto/always/never
  • Add --config flag
  • Add --quiet / -q flag
  • Add exit codes section to --help
  • Tests for each flag
  • Update README

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions