summaryrefslogtreecommitdiff
path: root/src/cli/ssh_cache.zig
AgeCommit message (Collapse)Author
2025-10-03Zig 0.15: zig build test Mitchell Hashimoto
2025-07-09cli: make the action parser (+foo) generic and reusableMitchell Hashimoto
2025-07-09cli: rewrite ssh-cache diskcache and test IOMitchell Hashimoto
2025-07-09cli: ssh-cache stylistic changesMitchell Hashimoto
2025-07-09cli: fix macOS buildsMitchell Hashimoto
2025-07-05fix: replace custom const with std lib, remove dead-weight testJason Rayne
- Replaced custom const `SECONDS_PER_DAY` with `std.time.s_per_day` - Removed concurrent access test - would need real file ops to be meaningful
2025-07-03tests: use ! operator instead of == false for consistencyJason Rayne
Co-authored-by: Kat <65649991+00-kat@users.noreply.github.com>
2025-07-03feat(ssh): rewrite SSH cache system in native ZigJason Rayne
- Eliminates standalone bash dependency - Consolidates `+list-ssh-cache` and `+clear-ssh-cache` actions into single `+ssh-cache` action with args - Structured cache format with timestamps and expiration support - Memory-safe entry handling with proper file locking - Comprehensive hostname validation (IPv4/IPv6/domains) - Atomic updates via temp file + rename - Updated shell integrations for improved cross-platform support and reliability - Cache operations are now unit-testable
2025-06-25fix: correct resources directory fallback path and eliminate code ↵Jason Rayne
duplication in ssh_cache - Fix fallback path from full path to "src" since full path is built later - Extract duplicate code from listCachedHosts and clearCache into runCacheCommand helper - Addresses feedback from @00-kat
2025-06-25refactor: replace ghostty wrapper with proper CLI actions for terminfo cache ↵Jason Rayne
management - Add +list-ssh-cache and +clear-ssh-cache CLI actions - Remove ghostty() wrapper functions from all shell integrations - Improve variable naming in shell scripts for readability Addresses @00-kat's feedback about CLI discoverability and naming consistency. The new CLI actions follow established Ghostty patterns and are discoverable via `ghostty --help`, while maintaining clean separation of concerns between shell logic and cache management.