Skip to main content

Output And Scripting

Gitquarry is designed to behave cleanly in pipelines. The main rule is simple:
  • structured data goes to stdout
  • progress and errors go to stderr

Output Formats

Supported formats:
  • pretty
  • json
  • toon
  • compact
  • csv

pretty

Human-first terminal output. Use it when reading results directly in a shell:

json

Pretty-printed structured output for tools and scripts:

toon

Token-efficient structured output for LLM context:

compact

Minified JSON for pipelines or logs:

csv

Flat export-friendly output:

Progress Behavior

Progress is controlled by:
Rules:
  • auto is the default
  • in auto, gitquarry only prints progress when stderr is a TTY
  • progress never goes to stdout
That means this is safe:

JSON Examples

Search pipeline:
Compact pipeline:
Inspect pipeline:

CSV Examples

Export search results:
Export one inspected repository:

CI-Friendly Usage

For deterministic CI or agent runs:
  • prefer json or compact
  • set --progress off if you want no progress noise at all
  • isolate config state with GITQUARRY_CONFIG_DIR
  • prefer env tokens over writing credentials into shared state
Example:

Error Handling

Errors are:
  • plain text
  • prefixed with a symbolic code
  • written to stderr
  • returned with exit code 1
Examples:
See error reference for the code list.