denisecase/zig-github-audit
A simple cross-platform GitHub repo fetcher using Zig
A simple cross-platform GitHub repo fetcher using Zig — a modern, C-like language for building fast, portable executables.
Just download zig-out/bin/github_audit.exe to your machine.
Then open a PowerShell terminal in the folder containing the executable and run:
Replace denisecase
with your GitHub username.
./github_audit.exe denisecase
Important: You will need curl
installed and available on your system PATH.
curl
installed and in your path. Download a prebuilt Zig release from https://ziglang.org/download/.
Extract it somewhere outside your cloud-synced directories (e.g., not OneDrive or iCloud).
Find the path to zig.exe
and add that folder to your system PATH
.
Restart all open VS Code windows to ensure the terminal picks up the updated environment.
Start a project, e.g. fork and clone this repo or start your own in GitHub with a default README.md. Clone your GitHub repo down to your machine. Open your repo folder in VS Code. In VS Code, Terminal / New Terminal. In a PowerShell terminal:
$PSVersionTable.PSEdition
$env:Path -split ';'
zig version
To run a the zig file directly without building an executable, use the following command. Replace the username with your GitHub username. Note the space after the dash-dash.
zig build run -- denisecase
Build an optimized executable:
zig build install -Doptimize=ReleaseSafe
This generates:
zig-out/bin/github_audit.exe
- list of GitHub repos for the given usernamezig-out/bin/github_audit.pdb
- program database file with debug info (optional)Note: Zig is under active development. Updates may break existing code.