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)
|
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 |
|
Andrew Phillips
|
ae9ea3ec03
|
Show file magic in --info, currently uses the file command
|
2024-02-28 19:20:30 +00:00 |
|
Andrew Phillips
|
982f74f27b
|
No need to clone here
|
2024-02-28 19:19:01 +00:00 |
|
Andrew Phillips
|
2cc33a7e3e
|
Show the timezone in --info
|
2024-02-28 19:18:46 +00:00 |
|
Andrew Phillips
|
57641c3b53
|
Make -H for human readable
|
2024-02-28 19:18:20 +00:00 |
|
Andrew Phillips
|
9623274c2b
|
Only show one decimal place for human mode
|
2024-02-26 18:52:46 +00:00 |
|
Andrew Phillips
|
3d2b24f4d9
|
Make human size units optional
|
2024-02-26 18:32:55 +00:00 |
|
Andrew Phillips
|
da61a3b635
|
Compression can have -c back
|
2023-09-20 19:05:17 +00:00 |
|
Andrew Phillips
|
9ea9b46772
|
Make return Ok(()) explicit
|
2023-09-20 19:04:54 +00:00 |
|
Andrew Phillips
|
f425e0df66
|
If a size is mssing for an item, --update will set it
|
2023-09-20 19:04:01 +00:00 |
|
Andrew Phillips
|
fdc4544068
|
Add default traits and open function to CompressionEngine
|
2023-09-20 19:01:50 +00:00 |
|
Andrew Phillips
|
1fe276d110
|
Whitespace
|
2023-09-20 18:59:43 +00:00 |
|
Andrew Phillips
|
97670b1860
|
Switch --list-meta to --list-format
|
2023-09-20 18:58:58 +00:00 |
|
Andrew Phillips
|
cf1f5daa16
|
Use the clean format for --list
|
2023-09-18 14:28:47 +00:00 |
|
Andrew Phillips
|
20effb84c4
|
Formatting
|
2023-09-18 14:28:12 +00:00 |
|
Andrew Phillips
|
49886b953a
|
Add ability to specify which meta columns are listed
|
2023-09-18 14:27:36 +00:00 |
|