--json makes it easy to pipe results into other tools, and --output-dir writes clean per-candidate files suitable for downstream automation.
Terminal Display (Default)
When neither--json nor --output-dir is provided, GitResolve prints an ANSI-colored summary table to your terminal. Each processed candidate gets one row with their resolved username, confidence level, number of owned repos, contributions, and any warnings. A summary line is printed at the end showing total resolved and unresolved counts.
The terminal display is suppressed when
--json is active, keeping stdout clean for piping.--json Mode
The --json flag suppresses all terminal UI output and prints the full results as a JSON array to stdout. Each element is an AggregatedResult object. This is the recommended mode when feeding GitResolve output into another tool or script.
--output-dir Mode
The --output-dir <dir> flag writes one JSON file per candidate to a directory on disk. GitResolve creates two subdirectories automatically:
<dir>/resolved/β one<username>.jsonfile per successfully resolved candidate<dir>/unresolved/β one<sanitized_source>_N.jsonfile per candidate that could not be resolved
Output Directory Structure
AggregatedResult JSON for that candidate. Unresolved filenames are derived from the first sourceβs basename with non-alphanumeric characters replaced by underscores, followed by an incrementing counter.
The
resolved/ and unresolved/ subdirectories are created automatically. You do not need to create them in advance.Combining --json and --output-dir
Both flags can be used together. When combined, GitResolve writes per-candidate JSON files to disk and prints the full JSON array to stdout simultaneously. This is useful for saving a permanent archive while also piping the results into a downstream script in one step.
AggregatedResult Schema
Every output mode produces AggregatedResult objects. The table below describes every field.
ExtractedGitLink Fields
Each link object inside ownedRepos, contributions, externalRepos, and allLinks has the following shape: