@@ -24,7 +24,7 @@ use state::AppState;
2424use tracing:: { error, info, warn} ;
2525use update:: update_packages;
2626use use_package:: use_alternate_package;
27- use utils:: { Colored , COLOR } ;
27+ use utils:: COLOR ;
2828
2929mod cli;
3030mod download;
@@ -243,17 +243,14 @@ async fn handle_cli() -> SoarResult<()> {
243243 cli:: Commands :: Env => {
244244 let config = get_config ( ) ;
245245
246- info ! (
247- "[{}]: These values are not configurable via environment \
248- variables. They are derived from the config file or defaults.",
249- Colored ( nu_ansi_term:: Color :: Yellow , "NOTE" )
250- ) ;
251-
252246 info ! ( "SOAR_CONFIG={}" , CONFIG_PATH . read( ) ?. display( ) ) ;
253247 info ! ( "SOAR_BIN={}" , config. get_bin_path( ) ?. display( ) ) ;
254248 info ! ( "SOAR_DB={}" , config. get_db_path( ) ?. display( ) ) ;
255249 info ! ( "SOAR_CACHE={}" , config. get_cache_path( ) ?. display( ) ) ;
256- info ! ( "SOAR_PACKAGE={}" , config. get_packages_path( None ) ?. display( ) ) ;
250+ info ! (
251+ "SOAR_PACKAGES={}" ,
252+ config. get_packages_path( None ) ?. display( )
253+ ) ;
257254 info ! (
258255 "SOAR_REPOSITORIES={}" ,
259256 config. get_repositories_path( ) ?. display( )
@@ -297,7 +294,7 @@ async fn handle_cli() -> SoarResult<()> {
297294 Ok ( v) => v,
298295 Err ( err) if err. kind ( ) == std:: io:: ErrorKind :: NotFound => {
299296 warn ! ( "Config file {} not found" , config_path. display( ) ) ;
300- let def_config = Config :: default ( ) ;
297+ let def_config = Config :: generate_default_config ( false ) ;
301298 toml:: to_string_pretty ( & def_config) ?
302299 }
303300 Err ( err) => {
0 commit comments