Commit Graph

625 Commits

Author SHA1 Message Date
Andrew Phillips (aider)
eaeb83f12e fix: add rusqlite Connection import and fix item_path scope 2025-05-13 18:31:46 -03:00
Andrew Phillips (aider)
d8e0cb9758 fix: add DigestType and get_digest_engine imports, fix item_path scope 2025-05-13 18:30:31 -03:00
Andrew Phillips (aider)
9a99bbd8bc feat: Recalculate digest if digest_type is set but digest_value is missing 2025-05-13 18:26:42 -03:00
Andrew Phillips
62aeb05e76 refactor: improve option handling and variable naming in show_item 2025-05-13 18:18:29 -03:00
Andrew Phillips (aider)
c167f28d17 fix: resolve compilation errors in info.rs by adding imports and fixing type handling 2025-05-13 18:10:37 -03:00
Andrew Phillips (aider)
975acf2dc3 refactor: extract item display logic into show_item function 2025-05-13 18:08:19 -03:00
Andrew Phillips (aider)
9046d0b558 refactor: replace if let with match in mode_info handling 2025-05-13 18:04:58 -03:00
Andrew Phillips (aider)
5727c831dc fix: resolve type mismatches by cloning Options and handling Result correctly in info.rs 2025-05-13 18:02:41 -03:00
Andrew Phillips (aider)
36a0eb56c1 fix: resolve type mismatches in info mode handling 2025-05-13 17:58:20 -03:00
Andrew Phillips (aider)
485b36ce02 feat: add digest type and value to info output 2025-05-13 17:55:48 -03:00
Andrew Phillips
cf279c42f1 style: add trailing commas in ColumnType match arms 2025-05-13 17:50:41 -03:00
Andrew Phillips
1aaf1e6221 feat: make digest_value optional and add digest display 2025-05-13 17:49:19 -03:00
Andrew Phillips (aider)
1d9ca1b9dd fix: clone digest_type to avoid move error 2025-05-13 17:25:38 -03:00
Andrew Phillips (aider)
2e6bc0cc77 fix: add missing digest_type and digest_value to db::Item 2025-05-13 17:22:08 -03:00
Andrew Phillips (aider)
75e131d0e3 feat: add build_digest_table based on build_compression_table 2025-05-13 16:56:19 -03:00
Andrew Phillips (aider)
6074fd3430 refactor: rename default_type to default_compression_type in compression calls 2025-05-13 16:44:12 -03:00
Andrew Phillips
a25e6bfdb3 refactor: remove unused parameters and simplify build functions 2025-05-13 16:38:22 -03:00
Andrew Phillips (aider)
ecc6646c6c fix: add missing anyhow::Error to Result return type in status.rs 2025-05-13 16:32:15 -03:00
Andrew Phillips
e9c6892111 refactor: move path table creation to build_path_table function 2025-05-13 16:32:07 -03:00
Andrew Phillips (aider)
1358d634c1 refactor: extract path table creation into build_path_table function 2025-05-13 16:30:17 -03:00
Andrew Phillips (aider)
4e43fa3f62 fix: resolve type mismatch and remove unused code 2025-05-13 16:28:18 -03:00
Andrew Phillips (aider)
aea254ae62 refactor: move compression table creation to build_compression_table function 2025-05-13 16:26:45 -03:00
Andrew Phillips
0189f3c273 refactor: remove module prefixes from compression and digest engine functions 2025-05-13 15:00:30 -03:00
Andrew Phillips (aider)
8f93657fa1 refactor: consolidate imports for get_*_engine functions 2025-05-13 09:00:45 -03:00
Andrew Phillips (aider)
f0a8fb3490 refactor: Remove crate:: prefix from get_digest_engine 2025-05-13 08:58:24 -03:00
Andrew Phillips (aider)
889c2bc838 refactor: update engine calls to use imported functions 2025-05-13 08:56:21 -03:00
Andrew Phillips (aider)
41ac4dafaf refactor: rename get_engine to get_compression_engine in diff mode 2025-05-13 08:54:04 -03:00
Andrew Phillips (aider)
e15cf371e0 refactor: Update imports to use specific get_engine functions 2025-05-13 08:51:21 -03:00
Andrew Phillips (aider)
9330fc1db9 refactor: Rename get_engine to get_compression_engine and update references 2025-05-13 08:46:41 -03:00
Andrew Phillips (aider)
0be716eac0 refactor: Rename get_engine to get_digest_engine and update references 2025-05-13 08:42:02 -03:00
Andrew Phillips
7db2a2ab75 (no commit message provided) 2025-05-13 08:16:47 -03:00
Andrew Phillips
9ba3a31e95 fix: remove duplicate digest argument and adjust imports 2025-05-12 22:11:56 -03:00
Andrew Phillips (aider)
4c2df3d743 fix: add PathBuf import and fix ? operator usage 2025-05-12 22:10:16 -03:00
Andrew Phillips
ae34376468 chore: remove unused PathBuf import 2025-05-12 22:10:05 -03:00
Andrew Phillips
4ee0715e39 refactor: update digest engine to use Result and Write, add is_supported method 2025-05-12 20:32:58 -03:00
Andrew Phillips (aider)
b1bfa7110b feat: Add --digest CLI option to select digest type 2025-05-12 19:10:12 -03:00
Andrew Phillips (aider)
41060c3029 feat: create digest engine with Sha256/Md5/None and integrate with save mode 2025-05-12 18:21:34 -03:00
Andrew Phillips (aider)
f6b6bc5768 fix: add FromStr import, remove unused compression_engine import 2025-05-12 17:20:44 -03:00
Andrew Phillips (aider)
0dba671f8d fix: Fix CompressionType and compression module references in save mode 2025-05-12 17:19:45 -03:00
Andrew Phillips (aider)
ad922485d0 fix: Remove duplicate and unused imports in save mode 2025-05-12 17:18:33 -03:00
Andrew Phillips (aider)
ba6e27f708 fix: resolve unresolved compression engine imports 2025-05-12 17:17:42 -03:00
Andrew Phillips (aider)
71a35a77a0 fix: correct compression module imports 2025-05-12 17:16:52 -03:00
Andrew Phillips (aider)
66e61a4196 refactor: move compression types to compression_engine module 2025-05-12 17:12:17 -03:00
Andrew Phillips (aider)
b08c7e7346 refactor: Rename compression module to compression_engine and update references 2025-05-12 17:11:32 -03:00
Andrew Phillips
d9072d22d5 refactor: improve test structure and reliability 2025-05-12 13:07:33 -03:00
Andrew Phillips (aider)
f9969a7537 fix: use libc::c_int for file descriptor instead of nix::Fd 2025-05-12 11:16:46 -03:00
Andrew Phillips (aider)
723ec2a6e8 fix: convert Fd to raw descriptor using .0 access
This addresses the E0412 error by correctly extracting the raw file descriptor from the nix::unistd::Fd newtype wrapper.
2025-05-12 11:15:32 -03:00
Andrew Phillips (aider)
f9dd390a12 fix: convert nix Fd to raw fd using into_raw() 2025-05-12 11:14:44 -03:00
Andrew Phillips (aider)
d31ab6e793 refactor: centralize thread spawning for item writing 2025-05-12 11:13:06 -03:00
Andrew Phillips (aider)
f3f3c6d628 refactor: extract common function for writing item data to pipe with fd argument 2025-05-12 11:10:00 -03:00