🎨 Palette: Enable multi-line input for vault string decryption#812
🎨 Palette: Enable multi-line input for vault string decryption#812
Conversation
When decrypting a string interactively (without --string or piped input), users often paste the encrypted payload, which spans multiple lines. The previous `Input::interact_text()` only read the first line (the header), causing decryption to fail. This change replaces the single-line input with a loop that reads lines until an empty line is entered, allowing users to paste the full encrypted block. - Modified `src/cli/commands/vault.rs` to implement multi-line reading. - Added `colored` and `std::io::Write` imports. - Removed unused `Input` import. Co-authored-by: dolagoartur <146357947+dolagoartur@users.noreply.github.com>
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
💡 What: Replaced the single-line interactive input for
rustible vault decrypt-stringwith a multi-line input loop.🎯 Why: The
encrypt-stringcommand produces multi-line output (header + base64 chunks). Users cannot interactively decrypt this output because the previous input method only read the first line (the header).📸 Before/After:
Before: Pasting the encrypted block would immediately submit only the header, causing an error.
After: The prompt asks to "press Enter twice to finish", allowing the user to paste the full block.
♿ Accessibility: Improved usability for interactive CLI workflows.
PR created automatically by Jules for task 11329074479455878391 started by @dolagoartur