Commit Graph

150 Commits

Author SHA1 Message Date
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
Andrew Phillips
2e1afbd7d7 Get meta keys/values from env when using --save 2023-09-18 14:26:36 +00:00
Andrew Phillips
96eb309c3e Add --info 2023-09-18 14:26:08 +00:00
Andrew Phillips
e389617207 Whitespace 2023-09-08 17:18:16 +00:00
Andrew Phillips
b50c75f007 Get the last item when using --get with no ids/tags/meta. 2023-09-08 17:17:01 +00:00
Andrew Phillips
4fad903c94 Don't wrap args.item.meta with option 2023-09-06 14:22:44 +00:00
Andrew Phillips
6f55c2ab81 Make --compress not conflict 2023-09-06 14:21:49 +00:00
Andrew Phillips
388d2a8666 Get BUFSIZ from libc 2023-09-06 13:35:55 +00:00
Andrew Phillips
469d74888d Don't need empty string 2023-09-02 23:35:22 +00:00
Andrew Phillips
c04a334926 Whitespace 2023-09-02 23:34:57 +00:00
Andrew Phillips
013ba99e02 Update error message 2023-09-02 23:34:45 +00:00
Andrew Phillips
b74ba32f68 Stylistic update 2023-09-02 23:22:26 +00:00
Andrew Phillips
8b51210dc9 Rename CompressionProgram to CompresionEngineProgram 2023-09-02 23:22:03 +00:00
Andrew Phillips
0a6cefc99e Add internal gzip compression 2023-09-02 23:21:33 +00:00
Andrew Phillips
cf352af7d5 Refactor compression into multiple files 2023-09-01 21:01:06 +00:00
Andrew Phillips
6222748901 Make tag/id error messages a bit clear 2023-09-01 15:39:03 +00:00
Andrew Phillips
5e539ac2a7 Add LZ4 as a built in compression engine (part 2) 2023-09-01 15:38:46 +00:00
Andrew Phillips
3d91385b42 Allow deleteing more than one item at once 2023-09-01 15:38:05 +00:00
Andrew Phillips
0ac453408f Add LZ4 as a built in compression engine 2023-09-01 15:37:17 +00:00
Andrew Phillips
49a77f9090 Most of basic functionality implemented 2023-08-31 19:38:59 +00:00
Andrew Phillips
b9bf5a831e Initial commit 2023-07-25 17:33:50 -03:00