Add forge9 stats command #3

Closed
opened 2026-11-26 20:55:39 +00:00 by github-bot · 1 comment
Owner

@⁠nineforge0 on GitHub · 2026-11-24 07:34 UTC · original

A quick overview of an archive's contents.

Scope

  • forge9 stats archive.rpf prints:
    • entry count, total bytes, zlib vs raw count
    • per-extension count and total size (from Archive::sniff)
    • a size histogram (e.g. power-of-two buckets: <1K, 1K-4K, 4K-16K, …)
  • Optional --json, following the style of forge9 list --json.
  • Optional --recursive to include nested RPF9s (see tree / search in src/main.rs for the recursion pattern).

Done when

  • Command works on any archive and cargo build --release is warning-free.
  • README usage section mentions it.

See CONTRIBUTING.md for build, test and style notes. Please don't attach game files to the PR; build test data in memory.

**@⁠nineforge0** on GitHub · 2026-11-24 07:34 UTC · [original](https://github.com/nineforge0/forge9/issues/3) A quick overview of an archive's contents. **Scope** - `forge9 stats archive.rpf` prints: - entry count, total bytes, zlib vs raw count - per-extension count and total size (from `Archive::sniff`) - a size histogram (e.g. power-of-two buckets: <1K, 1K-4K, 4K-16K, …) - Optional `--json`, following the style of `forge9 list --json`. - Optional `--recursive` to include nested RPF9s (see `tree` / `search` in `src/main.rs` for the recursion pattern). **Done when** - Command works on any archive and `cargo build --release` is warning-free. - README usage section mentions it. See [CONTRIBUTING.md](https://github.com/nineforge0/forge9/blob/main/CONTRIBUTING.md) for build, test and style notes. Please don't attach game files to the PR; build test data in memory.
github-bot 2026-11-26 20:55:39 +00:00
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 20:55:39 +00:00
Author
Owner

@⁠nineforge0 on GitHub · 2026-11-24 21:54 UTC · original · edited 2026-11-24 23:07 UTC

Added forge9 stats (text and --json): entries per kind, stored and inflated bytes, nested archive count and the largest entries, recursing into nested RPF9s.

Landed in 8defb65.

**@⁠nineforge0** on GitHub · 2026-11-24 21:54 UTC · [original](https://github.com/nineforge0/forge9/issues/3#issuecomment-7145557053) · edited 2026-11-24 23:07 UTC Added `forge9 stats` (text and `--json`): entries per kind, stored and inflated bytes, nested archive count and the largest entries, recursing into nested RPF9s. Landed in 8defb65.
This discussion has been locked. Commenting is limited to contributors.
No description provided.