mirror of https://github.com/helix-editor/helix
Merge 336a2f69e6
into 22b184b570
commit
3b2f2672f0
|
@ -92,6 +92,19 @@ pub fn general() -> std::io::Result<()> {
|
||||||
);
|
);
|
||||||
writeln!(stdout, "{}", msg.yellow())?;
|
writeln!(stdout, "{}", msg.yellow())?;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Ok(())
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Display warnings if runtime directories don't exist.
|
||||||
|
pub fn runtime_warnings() -> std::io::Result<()> {
|
||||||
|
let stdout = std::io::stdout();
|
||||||
|
let mut stdout = stdout.lock();
|
||||||
|
|
||||||
|
let rt_dirs = helix_loader::runtime_dirs();
|
||||||
|
|
||||||
|
for rt_dir in rt_dirs.iter() {
|
||||||
if !rt_dir.exists() {
|
if !rt_dir.exists() {
|
||||||
let msg = format!("Runtime directory does not exist: {}", rt_dir.display());
|
let msg = format!("Runtime directory does not exist: {}", rt_dir.display());
|
||||||
writeln!(stdout, "{}", msg.yellow())?;
|
writeln!(stdout, "{}", msg.yellow())?;
|
||||||
|
@ -404,11 +417,16 @@ pub fn print_health(health_arg: Option<String>) -> std::io::Result<()> {
|
||||||
Some("clipboard") => clipboard()?,
|
Some("clipboard") => clipboard()?,
|
||||||
None | Some("all") => {
|
None | Some("all") => {
|
||||||
general()?;
|
general()?;
|
||||||
|
runtime_warnings()?;
|
||||||
clipboard()?;
|
clipboard()?;
|
||||||
writeln!(std::io::stdout().lock())?;
|
writeln!(std::io::stdout().lock())?;
|
||||||
languages_all()?;
|
languages_all()?;
|
||||||
}
|
}
|
||||||
Some(lang) => language(lang.to_string())?,
|
Some(lang) => {
|
||||||
|
language(lang.to_string())?;
|
||||||
|
writeln!(std::io::stdout().lock())?;
|
||||||
|
runtime_warnings()?;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue