A high-performance, lightweight C++ utility to fetch and display the directory tree of a GitHub repository without cloning it.
- Single API call (recursive) for fast performance.
- Auto-detects repository default branch.
- Supports authenticated requests for higher API rate limits.
- Zero-dependency compilation (via system packages).
Requires CMake, a C++17 compiler, and libcurl.
- mkdir build && cd build
- cmake -DCMAKE_BUILD_TYPE=Release ..
- ninja
Basic usage:
./gh_tree.exe
Authenticated usage:
export GITHUB_TOKEN="your_token_here"
./gh_tree.exe
- libcurl
- nlohmann-json