Skip to content

Commit

Permalink
fix: remove windows warning
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Aug 18, 2024
1 parent 2d4cee2 commit 9be937e
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions src/cli/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -215,9 +215,6 @@ impl Cli {
logger::init();
migrate::run();

#[cfg(all(windows, not(debug_assertions)))]
warn_windows(&args[1])?;

debug!("ARGS: {}", &args.join(" "));
match Commands::from_arg_matches(&matches) {
Ok(cmd) => cmd.run(),
Expand All @@ -229,17 +226,6 @@ impl Cli {
}
}

#[cfg(all(windows, not(debug_assertions)))]
fn warn_windows(arg1: &str) -> Result<()> {
warn!("mise is not yet supported on windows. Do not expect anything to work.");
let settings = Settings::try_get()?;
if arg1 != "settings" {
// allow running `mise settings set experimental true`
settings.ensure_experimental("windows support")?;
}
Ok(())
}

const LONG_ABOUT: &str = indoc! {"
mise is a tool for managing runtime versions. https://github.com/jdx/mise
Expand Down

0 comments on commit 9be937e

Please sign in to comment.