@@ -111,8 +111,7 @@ impl Config {
111
111
pub fn new ( ) -> Config {
112
112
if !geode_root ( ) . exists ( ) {
113
113
warn ! ( "It seems you don't have Geode installed. Some operations will not work" ) ;
114
- info ! ( "You can install geode using the official installer" ) ;
115
- info ! ( "At {}" , "https://github.com/geode-sdk/installer/releases/latest" . bright_cyan( ) ) ;
114
+ info ! ( "You can setup Geode using `geode config setup`" ) ;
116
115
117
116
return Config {
118
117
current_profile : None ,
@@ -127,6 +126,7 @@ impl Config {
127
126
let config_json = geode_root ( ) . join ( "config.json" ) ;
128
127
129
128
let mut output: Config = if !config_json. exists ( ) {
129
+ info ! ( "Setup Geode using `geode config setup`" ) ;
130
130
// Create new config
131
131
Config {
132
132
current_profile : None ,
@@ -158,7 +158,7 @@ impl Config {
158
158
159
159
if output. profiles . is_empty ( ) {
160
160
warn ! ( "No Geode profiles found! Some operations will be unavailable." ) ;
161
- info ! ( "Install Geode using the official installer (https://github.com/geode-sdk/installer/releases/latest) " ) ;
161
+ info ! ( "Setup Geode using `geode config setup` " ) ;
162
162
} else if output. get_profile ( & output. current_profile ) . is_none ( ) {
163
163
output. current_profile = Some ( output. profiles [ 0 ] . borrow ( ) . name . clone ( ) ) ;
164
164
}
@@ -167,6 +167,7 @@ impl Config {
167
167
}
168
168
169
169
pub fn save ( & self ) {
170
+ std:: fs:: create_dir_all ( geode_root ( ) ) . nice_unwrap ( "Unable to create Geode directory" ) ;
170
171
std:: fs:: write (
171
172
geode_root ( ) . join ( "config.json" ) ,
172
173
serde_json:: to_string ( self ) . unwrap ( )
0 commit comments