@@ -67,14 +67,18 @@ pub fn install_env(env: &str) {
67
67
. arg ( "brew install python" )
68
68
. status ( )
69
69
} else {
70
- println ! ( "No supported package manager found (apt-get, dnf, yum, pacman). Please install Python manually." ) ;
70
+ println ! (
71
+ "No supported package manager found (apt-get, dnf, yum, pacman). Please install Python manually."
72
+ ) ;
71
73
return ;
72
74
}
73
75
} ;
74
76
75
77
match output {
76
78
Ok ( status) if status. success ( ) => println ! ( "Python installation completed!" ) ,
77
- Ok ( status) => println ! ( "Python installation failed, exit code: {:?}" , status. code( ) ) ,
79
+ Ok ( status) => {
80
+ println ! ( "Python installation failed, exit code: {:?}" , status. code( ) )
81
+ }
78
82
Err ( e) => println ! ( "Error occurred while running install command: {e}" ) ,
79
83
}
80
84
}
@@ -96,7 +100,10 @@ pub fn install_env(env: &str) {
96
100
97
101
#[ cfg( target_os = "windows" ) ]
98
102
let output = std:: process:: Command :: new ( "powershell" )
99
- . args ( [ "-Command" , "winget install -e --id Xmake-io.Xmake --source winget" ] )
103
+ . args ( [
104
+ "-Command" ,
105
+ "winget install -e --id Xmake-io.Xmake --source winget" ,
106
+ ] )
100
107
. status ( ) ;
101
108
102
109
#[ cfg( not( target_os = "windows" ) ) ]
@@ -113,4 +120,4 @@ pub fn install_env(env: &str) {
113
120
}
114
121
_ => println ! ( "Automatic installation for this environment is not supported: {env}" ) ,
115
122
}
116
- }
123
+ }
0 commit comments