File tree 1 file changed +16
-1
lines changed
1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -630,7 +630,22 @@ fn run(args: Args) -> eyre::Result<()> {
630
630
println ! ( "Uninstalling Dora CLI..." ) ;
631
631
#[ cfg( feature = "python" ) ]
632
632
{
633
- println ! ( "Detected pip installation, running pip uninstall..." ) ;
633
+ println ! ( "Detected Python installation..." ) ;
634
+
635
+ // Try uv pip uninstall first
636
+ let uv_status = std:: process:: Command :: new ( "uv" )
637
+ . args ( [ "pip" , "uninstall" , "dora-rs-cli" ] )
638
+ . status ( ) ;
639
+
640
+ if let Ok ( status) = uv_status {
641
+ if status. success ( ) {
642
+ println ! ( "Dora CLI has been successfully uninstalled via uv pip." ) ;
643
+ return Ok ( ( ) ) ;
644
+ }
645
+ }
646
+
647
+ // Fall back to regular pip uninstall
648
+ println ! ( "Trying with pip..." ) ;
634
649
let status = std:: process:: Command :: new ( "pip" )
635
650
. args ( [ "uninstall" , "-y" , "dora-rs-cli" ] )
636
651
. status ( )
You can’t perform that action at this time.
0 commit comments