Commit Graph

531 Commits

Author SHA1 Message Date
Andrew Phillips (aider)
9fedd37494 fix: fix duplicate imports, type mismatch, and missing Read trait 2025-05-10 11:54:59 -03:00
Andrew Phillips (aider)
887e9cda42 The SEARCH block must exactly match the existing lines, including context. Here's the corrected block for src/modes/get.rs:
```rust
<<<<<<< SEARCH
use std::str::FromStr;
use clap::Command;
=======
use std::str::FromStr;
use std::io::BufWriter;
use clap::Command;
>>>>>>> REPLACE
```

This ensures the `BufWriter` import is added between `FromStr` and `Command` without duplicating any existing lines.
2025-05-10 11:51:47 -03:00
Andrew Phillips (aider)
b91144bbf2 fix: resolve missing and conflicting imports 2025-05-10 11:50:16 -03:00
Andrew Phillips (aider)
86d2c2f9f5 fix: add missing imports and remove unused ones 2025-05-10 11:47:47 -03:00
Andrew Phillips (aider)
f913abda58 refactor: remove unused imports and add chrono::Utc 2025-05-10 11:42:59 -03:00
Andrew Phillips (aider)
520bb00927 fix: resolve imports and remove unused ones 2025-05-10 11:40:43 -03:00
Andrew Phillips (aider)
bd661ff850 refactor: update mode_save to use &mut Connection like mode_get 2025-05-10 11:29:24 -03:00
Andrew Phillips (aider)
d818358860 refactor: move mode_save to dedicated save module 2025-05-10 10:10:27 -03:00
Andrew Phillips
9feec61759 style: reorder imports and reformat code for consistency 2025-05-10 10:06:33 -03:00
Andrew Phillips (aider)
63a2ff9707 fix: add FromStr import for CompressionType 2025-05-10 10:00:51 -03:00
Andrew Phillips (aider)
dea46b0679 fix: import FromStr from std::str in status module 2025-05-10 09:58:00 -03:00
Andrew Phillips (aider)
94fff32244 fix: resolve from_str usage and filter method errors, remove unused imports 2025-05-10 09:44:25 -03:00
Andrew Phillips (aider)
d4501e1183 fix: remove unused imports and add missing traits for is_terminal/from_str 2025-05-10 09:27:39 -03:00
Andrew Phillips (aider)
d832dcf8f7 fix: resolve compilation errors in status.rs
Add missing imports for IsTerminal and FromStr, fix Args type reference, and remove unused imports causing warnings.
2025-05-10 09:22:53 -03:00
Andrew Phillips (aider)
9d4c59d0b5 refactor: move mode_status to src/modes/status.rs 2025-05-10 09:19:54 -03:00
Andrew Phillips (aider)
cd0387c788 fix: add missing FromStr import to fix enum parsing 2025-05-10 09:16:36 -03:00
Andrew Phillips (aider)
3351245eb4 refactor: remove unused imports and add missing ones 2025-05-10 09:14:31 -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)
60515c628a refactor: remove unused imports from get.rs 2025-05-10 08:29:08 -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)
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)
331a971d3d refactor: Move common utility functions to src/modes/common.rs and update module structure 2025-05-09 16:20:54 -03:00