Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces significant enhancements to the TUI-based Python virtual environment manager, including new features for virtual environment deletion, improved UI, command-line argument support, and comprehensive test coverage. The most important changes are grouped below:
Feature Enhancements:
start_deletion
,confirm_deletion
, andcancel_deletion
in theApp
struct. These methods ensure safe deletion with proper index validation and UI updates. (src/app.rs
, src/app.rsR2-R63)User Interface Improvements:
src/ui.rs
, src/ui.rsR2-R104)centered_rect
to manage UI layout for dialogs. (src/ui.rs
, src/ui.rsR2-R104)Command-Line Argument Support:
clap
for parsing command-line arguments, enabling users to specify a scan path and choose a non-TUI mode to list virtual environments. (src/main.rs
, src/main.rsL6-R110)--no-tui
flag to print found virtual environments directly to the console. (src/main.rs
, src/main.rsL6-R110)Dependency Updates:
clap
(withderive
feature),crossterm
, andratatui
for command-line parsing and TUI rendering. (Cargo.toml
, Cargo.tomlR12)Test Coverage:
App
struct, including navigation, deletion workflows, and edge cases. (src/app.rs
, src/app.rsR80-R292)scanner
module. (src/scanner.rs
, src/scanner.rsR64-R182)This pull request introduces significant enhancements to the TUI-based Python virtual environment manager, including new features for virtual environment deletion, improved UI, command-line argument support, and comprehensive test coverage. The most important changes are grouped below:
Feature Enhancements:
start_deletion
,confirm_deletion
, andcancel_deletion
in theApp
struct. These methods ensure safe deletion with proper index validation and UI updates. (src/app.rs
, src/app.rsR2-R63)User Interface Improvements:
src/ui.rs
, src/ui.rsR2-R104)centered_rect
to manage UI layout for dialogs. (src/ui.rs
, src/ui.rsR2-R104)Command-Line Argument Support:
clap
for parsing command-line arguments, enabling users to specify a scan path and choose a non-TUI mode to list virtual environments. (src/main.rs
, src/main.rsL6-R110)--no-tui
flag to print found virtual environments directly to the console. (src/main.rs
, src/main.rsL6-R110)Dependency Updates:
clap
(withderive
feature),crossterm
, andratatui
for command-line parsing and TUI rendering. (Cargo.toml
, Cargo.tomlR12)Test Coverage:
App
struct, including navigation, deletion workflows, and edge cases. (src/app.rs
, src/app.rsR80-R292)scanner
module. (src/scanner.rs
, src/scanner.rsR64-R182)