forked from Orchid/orchid
exec working up to halt
clean shutdown doesn't for some reason
This commit is contained in:
@@ -20,7 +20,7 @@ pub fn check_api_refs(_args: &Args) -> io::Result<()> {
|
||||
continue;
|
||||
}
|
||||
let dname = file.path().to_string_lossy().to_string();
|
||||
eprintln!("orchid_api imported in {dname} at {};{}", l + 1, c + 1)
|
||||
eprintln!("orchid_api imported in {dname}:{}:{}", l + 1, c + 1)
|
||||
}
|
||||
}
|
||||
Ok(())
|
||||
|
||||
@@ -5,18 +5,23 @@ use std::sync::atomic::Ordering;
|
||||
use crate::{Args, EXIT_OK};
|
||||
|
||||
pub fn orcx(_args: &Args, argv: &[String]) -> io::Result<()> {
|
||||
if !Command::new("cargo").args(["build", "-p", "orchid-std"]).status()?.success() {
|
||||
if !Command::new("cargo").args(["build", "-p", "orchid-std", "--quiet"]).status()?.success() {
|
||||
EXIT_OK.store(false, Ordering::Relaxed);
|
||||
return Ok(());
|
||||
}
|
||||
if !Command::new("cargo").args(["run", "-p", "orcx", "--"]).args(argv).status()?.success() {
|
||||
if !Command::new("cargo")
|
||||
.args(["run", "-p", "orcx", "--quiet", "--"])
|
||||
.args(argv)
|
||||
.status()?
|
||||
.success()
|
||||
{
|
||||
EXIT_OK.store(false, Ordering::Relaxed);
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
|
||||
pub fn orcxdb(_args: &Args, argv: &[String]) -> io::Result<()> {
|
||||
if !Command::new("cargo").args(["build", "-p", "orchid-std"]).status()?.success() {
|
||||
if !Command::new("cargo").args(["build", "-p", "orchid-std", "--quiet"]).status()?.success() {
|
||||
EXIT_OK.store(false, Ordering::Relaxed);
|
||||
return Ok(());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user