codeye / docs

Output Formats

Select a format with --format <name>.

Terminal formats

FormatPurpose
tableDefault human-readable summary
barHorizontal language bars
sparkSparkline-focused output
compactSingle-line summary for prompts or status bars
markdownGitHub-friendly table output

Structured formats

FormatPurpose
jsonFull structured payload
ndjsonOne JSON object per line
csvSpreadsheet and reporting workflows
badgeShields.io endpoint JSON

JSON example

{
  "repo": "A:/Projects/codeye",
  "ref": "main",
  "tree_sha": "a5bc10236b9bcf55b5446dd55325359fcb6acbdd",
  "scan_ms": 55,
  "cached": true,
  "scanned_at": "2026-03-11T17:08:35.9428616Z",
  "total": {
    "name": "Total",
    "files": 62,
    "code": 6414,
    "blank": 900,
    "comment": 467,
    "lines": 7781
  },
  "languages": [
    {
      "name": "Go",
      "files": 31,
      "code": 4247,
      "blank": 500,
      "comment": 415,
      "lines": 5162,
      "pct": 66.34
    }
  ]
}

Examples

# Pipe structured data into jq
codeye --format json . | jq '.total.lines'

# Generate a CSV artifact
codeye --format csv . > loc.csv

# Append a Markdown summary to a changelog or README
codeye --format markdown . >> REPORT.md

# Publish a Shields-compatible badge payload
codeye --format badge . > public/codeye-badge.json