]> quire.kejadlen.dev Git - quire.git/commit
Extract Repo struct to unify path validation
authorAlpha Chen <alpha@kejadlen.dev>
Sat, 25 Apr 2026 13:56:41 +0000 (06:56 -0700)
committerAlpha Chen <alpha@kejadlen.dev>
Sat, 25 Apr 2026 14:05:35 +0000 (07:05 -0700)
commit5a94cbd634929597461d1f3a27fe59bd3f6d96ef
tree303468cd576e396b98269fa459ea4bca84e11548
parent1eead36179bdf4b900c14f6146b643e9bee2c57e
Extract Repo struct to unify path validation

All repo name validation now goes through Repo::from_name(). The exec
command strips the SSH leading slash before calling it, keeping the
Repo type focused on name rules only. Removed the duplicate
validate_repo_path function from exec.rs.

Assisted-by: GLM-5.1 via pi
src/bin/quire/commands/exec.rs
src/bin/quire/commands/repo/new.rs
src/bin/quire/commands/repo/rm.rs
src/repo.rs