Commit Graph

3 Commits

Author SHA1 Message Date
Pierre Warnier b4130cfcf0 review: address all 6 Copilot review comments 2026-04-03 12:30:52 +02:00
Pierre Warnier 829b37f7a8 completions: add clap_complete shell completion generator (#106)
Feature-gated binary (--features completions) that generates bash/zsh/fish/
elvish/powershell completions from each tool's uu_app() definition.

Usage:
  shadow-rs-completions passwd --shell bash
  shadow-rs-completions --all --shell zsh --dir completions/

Also updates generate-completions.sh to use the new binary and adds
windows-sys skip to deny.toml for transitive clap dep.

Fixes #106
2026-04-03 12:18:18 +02:00
Pierre Warnier 748f0ad88d fix: binary size <1MB, shared test helpers, shell completions
Fixes #78 — Binary size: release-small profile achieves 894KB (<1MB).
  Default release also shrank from 1.5MB to 1.3MB thanks to
  panic=abort + codegen-units=1 from PR #91.

Fixes #86 — Shared test helper crate at tests/common/mod.rs with
  skip_unless_root(), setup_prefix(), setup_full_prefix(), read_file().

Fixes #88 — Shell completion script at util/generate-completions.sh
  (placeholder — generates minimal bash/zsh/fish completions).

456 tests, zero clippy warnings.
2026-03-24 14:48:37 +01:00