Fix init command not mapping binaries

Fixes #3
main
trivernis 2 years ago
parent cefc25097f
commit 84fe43bdf6
Signed by: Trivernis
GPG Key ID: DFFFCC2C7A02DB45

@ -1,5 +1,3 @@
use std::{ffi::OsString, str::FromStr};
use crate::{ use crate::{
config::{ConfigAccess, ExecutableConfig}, config::{ConfigAccess, ExecutableConfig},
consts::{BIN_DIR, CACHE_DIR, VERSION_FILE_PATH}, consts::{BIN_DIR, CACHE_DIR, VERSION_FILE_PATH},
@ -12,6 +10,7 @@ use crate::{
use crossterm::style::Stylize; use crossterm::style::Stylize;
use dialoguer::{theme::ColorfulTheme, Input, Select}; use dialoguer::{theme::ColorfulTheme, Input, Select};
use miette::{Context, IntoDiagnostic, Result}; use miette::{Context, IntoDiagnostic, Result};
use std::{ffi::OsString, str::FromStr};
use tokio::fs; use tokio::fs;
pub struct Nenv { pub struct Nenv {
@ -196,6 +195,7 @@ impl Nenv {
}; };
self.repo.install_version(&version).await?; self.repo.install_version(&version).await?;
self.get_mapper().await?.remap_additive().await?;
println!("{}", "Initialized!".green()); println!("{}", "Initialized!".green());
println!( println!(

Loading…
Cancel
Save