use crate::runtimes::CommandGenerator;
use std::{path::PathBuf, process::Command};
const COMMAND_JULIA: &str = "julia";
#[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord)]
pub struct CommandGeneratorJulia {
jl_path: PathBuf,
}
impl CommandGeneratorJulia {
pub fn new(jl_path: impl Into<PathBuf>) -> Self {
Self {
jl_path: jl_path.into(),
}
}
}
impl CommandGenerator for CommandGeneratorJulia {
fn generate_command(&self) -> Command {
let mut command_julia = Command::new(COMMAND_JULIA);
command_julia.arg(&self.jl_path);
command_julia
}
}