Add WARZONE_HOME env var for separate user data directories

All data paths now use keystore::data_dir() which checks
WARZONE_HOME first, falls back to ~/.warzone.

This avoids the HOME override hack that breaks rustup/cargo.

Usage: WARZONE_HOME=/tmp/bob warzone init

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Siavash Sameni
2026-03-26 22:27:49 +04:00
parent 94b845eb5b
commit 722441c391
4 changed files with 21 additions and 12 deletions

6
warzone/test Normal file
View File

@@ -0,0 +1,6 @@
1. glimpse 2. into 3. same 4. buffalo
5. wise 6. catalog 7. gift 8. ginger
9. profit 10. nut 11. palace 12. document
13. display 14. seat 15. lizard 16. they
17. medal 18. market 19. oak 20. occur
21. gospel 22. ahead 23. before 24. execute