Andrew Phillips (aider)
3351245eb4
refactor: remove unused imports and add missing ones
2025-05-10 09:14:31 -03:00
Andrew Phillips
9bc4fcd484
refactor: remove mode_update function and associated logic
2025-05-10 09:12:10 -03:00
Andrew Phillips (aider)
dd79ebe96c
refactor: move mode_update to src/modes/update.rs
2025-05-10 08:44:49 -03:00
Andrew Phillips (aider)
1207dfc2c0
fix: correct invalid self import in delete.rs
...
The original line `use crate::db::self;` was invalid because `self` cannot be used in a `use` statement outside of a list. Changed to `use crate::db;` to properly import the module.
2025-05-10 08:41:08 -03:00
Andrew Phillips (aider)
6c3f717b8d
fix: add missing log/rusqlite imports and remove unused imports
2025-05-10 08:39:50 -03:00
Andrew Phillips (aider)
6a0c999d3d
fix: add delete module to modes and remove nested declaration
2025-05-10 08:38:21 -03:00
Andrew Phillips (aider)
93d06b4429
refactor: Move mode_delete function to src/modes/delete.rs
2025-05-10 08:37:03 -03:00
Andrew Phillips (aider)
b894eab29c
fix: remove unused import of get_engine
2025-05-10 08:33:00 -03:00
Andrew Phillips
bb04d7ca0b
refactor: remove mode_get function
2025-05-10 08:31:53 -03:00
Andrew Phillips (aider)
60515c628a
refactor: remove unused imports from get.rs
2025-05-10 08:29:08 -03:00
Andrew Phillips (aider)
bc0875e304
fix: remove unused imports and make Args public
2025-05-10 08:24:36 -03:00
Andrew Phillips (aider)
ddd25b3a1d
fix: add missing get_engine import in main.rs
2025-05-10 08:22:06 -03:00
Andrew Phillips (aider)
0f4deae712
feat(get): add clap Command and CompressionType imports
2025-05-10 07:46:57 -03:00
Andrew Phillips (aider)
5ce173fdc1
fix: resolve missing imports and private struct errors
2025-05-10 07:42:07 -03:00
Andrew Phillips (aider)
a53737057f
fix: fix duplicate imports and add missing FromStr for CompressionType
2025-05-10 07:40:00 -03:00
Andrew Phillips (aider)
361e0b3f6f
feat: Implement --get command to retrieve items by ID or tag with compression handling
2025-05-09 16:52:16 -03:00
Andrew Phillips (aider)
008899f6ab
fix: resolve missing functions and unused imports
...
The commit adds `pub` to `mode_get` for visibility and removes unused imports in `src/modes/get.rs`, while adding the missing `get_engine` import.
2025-05-09 16:39:41 -03:00
Andrew Phillips (aider)
e134c73eda
refactor: fix get_engine module import in mode_get
2025-05-09 16:38:06 -03:00
Andrew Phillips (aider)
f7a53dfa6e
refactor: move mode_get to modes/get module and update imports
2025-05-09 16:37:19 -03:00
Andrew Phillips (aider)
a68be7905e
refactor: remove unused imports in src/main.rs and src/modes/common.rs
2025-05-09 16:29:02 -03:00
Andrew Phillips (aider)
ffa67db7b7
fix: add modes module declaration and common imports to resolve unresolved symbols
2025-05-09 16:25:32 -03:00
Andrew Phillips (aider)
01658b62b5
chore: remove unused utility functions
2025-05-09 16:22:18 -03:00
Andrew Phillips (aider)
331a971d3d
refactor: Move common utility functions to src/modes/common.rs and update module structure
2025-05-09 16:20:54 -03:00
Andrew Phillips
7725e41883
Finished implementing --diff
2025-05-06 14:53:22 -03:00
Andrew Phillips (aider)
8b7d10e08b
fix: declare stdout_a and stdout_b as mutable
2025-05-06 13:56:04 -03:00
Andrew Phillips (aider)
d90d48cbf2
fix: move BufWriter creation inside threads for stdout_a and stdout_b
2025-05-06 13:54:15 -03:00
Andrew Phillips (aider)
088a5ccbad
fix: move compression engine initialization into threads
2025-05-06 13:52:02 -03:00
Andrew Phillips
a6d5db2a84
refactor: remove redundant compression engine initialization
2025-05-06 13:51:58 -03:00
Andrew Phillips (aider)
43eff88003
fix: remove invalid clone calls for BufWriter and Box<dyn CompressionEngine>
2025-05-06 13:47:34 -03:00
Andrew Phillips (aider)
b20759b781
refactor: move compression engine copy calls to separate threads
2025-05-06 13:46:17 -03:00
Andrew Phillips
ec8bc20373
feat: add debug logs to mode_diff function
2025-05-06 13:46:16 -03:00
Andrew Phillips (aider)
1852778f75
feat: pass file descriptors to diff command
2025-05-06 13:29:52 -03:00
Andrew Phillips
277038e7ad
refactor: rename stdout_a and stdout_b variables for clarity
2025-05-06 13:26:11 -03:00
Andrew Phillips (aider)
655418d9c7
fix: resolve borrow errors in db and main modules
2025-05-06 13:18:08 -03:00
Andrew Phillips (aider)
96b10a926f
fix: resolve unused variables and mutable issues
2025-05-06 12:44:14 -03:00
Andrew Phillips (aider)
34616d566d
fix: import BufWriter from std::io
2025-05-06 12:41:17 -03:00
Andrew Phillips (aider)
dfb765b96c
fix: correct file descriptor handling in diff command
2025-05-06 12:05:58 -03:00
Andrew Phillips (aider)
0f98221a86
refactor: refactor diff mode to correctly fork and handle decompressed data
2025-05-06 12:04:27 -03:00
Andrew Phillips (aider)
1456c45bd3
fix: add missing Read and Write trait imports
2025-05-06 11:53:27 -03:00
Andrew Phillips (aider)
b32d49446f
style: remove unused std::io imports
2025-05-06 11:52:14 -03:00
Andrew Phillips (aider)
8026742a56
refactor: remove redundant copy method from CompressionEngine implementations
2025-05-06 11:50:32 -03:00
Andrew Phillips (aider)
d83d5b4781
fix: import std::io for undeclared crate or module io
2025-05-06 11:47:42 -03:00
Andrew Phillips (aider)
0d523aa969
refactor: add copy method to CompressionEngineProgram
2025-05-06 11:42:14 -03:00
Andrew Phillips (aider)
054291383c
refactor: add copy method to CompressionEngine and update mode_diff to use it
2025-05-06 11:39:44 -03:00
Andrew Phillips (aider)
4a09c8fd72
build: add nix dependency
2025-05-06 11:12:52 -03:00
Andrew Phillips (aider)
0901b6fff8
build: add nix crate and update main.rs
2025-05-06 11:10:12 -03:00
Andrew Phillips (aider)
2fb50fca48
fix: add FromRawFd import and use it to create File instances
2025-05-06 11:07:29 -03:00
Andrew Phillips (aider)
3cd7f1c2a8
feat: stream item contents directly into diff command without temp files
2025-05-06 11:02:33 -03:00
Andrew Phillips (aider)
61b41a1852
feat: implement mode_diff function with diff command
2025-05-06 11:00:36 -03:00
Andrew Phillips
c1e04fc9c5
feat: add diff mode to compare items
2025-05-06 11:00:35 -03:00