pub fn snoop_server(dir: PathBuf, opts: SnoopServeOpts) -> Result<i32, ExecutionError> {
    // Set the environment variables for the host and port
    env::set_var("PERSEUS_HOST", opts.host);
    env::set_var("PERSEUS_PORT", opts.port.to_string());

    let target = dir.join(".perseus/server");
    run_cmd_directly(
        format!(
            "{} run {}",
            env::var("PERSEUS_CARGO_PATH").unwrap_or_else(|_| "cargo".to_string()),
            // Enable the appropriate feature for a non-default server integration
            format!(
                "--features integration-{} --no-default-features",
                opts.integration.to_string()
            )
        ),
        &target,
    )
}
/// Runs the commands to run the server directly so the user can see detailed logs.
Runs the commands to run the server directly so the user can see detailed logs.
Runs the commands to run the server directly so the user can see detailed logs .
pub fn snoop_server(dir: PathBuf, opts: SnoopServeOpts) -> Result<i32, ExecutionError> {
    // Set the environment variables for the host and port
    env::set_var("PERSEUS_HOST", opts.host);
    env::set_var("PERSEUS_PORT", opts.port.to_string());
    let target = dir.join(".perseus/server");
    run_cmd_directly(
        format!(
            "{} run {}",
            env::var("PERSEUS_CARGO_PATH").unwrap_or_else(|_| "cargo".to_string()),
            // Enable the appropriate feature for a non-default server integration
            format!(
                "--features integration-{} --no-default-features",
                opts.integration.to_string()
            )
        ),
        &target,
    )
}
pub fn snoop_server ( dir : PathBuf , opts : SnoopServeOpts ) -> Result < i32 , ExecutionError > { // Set the environment variables for the host and port env :: set_var ( " " , opts . host ) ; env :: set_var ( " " , opts . port . to_string ( ) ) ; let target = dir . join ( " " ) ; run_cmd_directly ( format ! ( " " env var ( " " ) unwrap_or_else ( " " to_string ( ) ) // Enable the appropriate feature for a non-default server integration format ( " " opts integration to_string ( ) ) ) , & target , ) }
Runs the commands to run the server directly so the user can see detailed logs.
Runs the commands to run the server directly so the user can see detailed logs .
dir
PathBuf
opts
SnoopServeOpts
dir
PathBuf
opts
SnoopServeOpts