pub fn run(opts: Opts) -> Result {
    // Detect unspecified files
    let opts = opts.find_if_unspec().context(FindSnafu)?;

    // Print detected files
    opts.print();
    println!();

    set_bin_exec(&opts).context(SetBinExecSnafu)?;
    maybe_visit_libc(&opts);

    // Redo detection in case the ld was downloaded
    let opts = opts.find_if_unspec().context(FindSnafu)?;

    set_ld_exec(&opts).context(SetLdExecSnafu)?;

    if !opts.no_patch_bin {
        patch_bin::patch_bin(&opts).context(PatchBinSnafu)?;
    }

    if !opts.no_template {
        solvepy::write_stub(&opts).context(SolvepySnafu)?;
    }

    Ok(())
}
/// Run `pwninit` with specified options
Run `pwninit` with specified options
Run ` pwninit ` with specified options
pub fn run(opts: Opts) -> Result {
    // Detect unspecified files
    let opts = opts.find_if_unspec().context(FindSnafu)?;
    // Print detected files
    opts.print();
    println!();
    set_bin_exec(&opts).context(SetBinExecSnafu)?;
    maybe_visit_libc(&opts);
    // Redo detection in case the ld was downloaded
    let opts = opts.find_if_unspec().context(FindSnafu)?;
    set_ld_exec(&opts).context(SetLdExecSnafu)?;
    if !opts.no_patch_bin {
        patch_bin::patch_bin(&opts).context(PatchBinSnafu)?;
    }
    if !opts.no_template {
        solvepy::write_stub(&opts).context(SolvepySnafu)?;
    }
    Ok(())
}
pub fn run ( opts : Opts ) -> Result { // Detect unspecified files let opts = opts . find_if_unspec ( ) . context ( FindSnafu ) ? ; // Print detected files opts . print ( ) ; println ! ( ) ; set_bin_exec ( & opts ) . context ( SetBinExecSnafu ) ? ; maybe_visit_libc ( & opts ) ; // Redo detection in case the ld was downloaded let opts = opts . find_if_unspec ( ) . context ( FindSnafu ) ? ; set_ld_exec ( & opts ) . context ( SetLdExecSnafu ) ? ; if ! opts . no_patch_bin { patch_bin :: patch_bin ( & opts ) . context ( PatchBinSnafu ) ? ; } if ! opts . no_template { solvepy :: write_stub ( & opts ) . context ( SolvepySnafu ) ? ; } Ok ( ( ) ) }
Run `pwninit` with specified options
Run ` pwninit ` with specified options
opts
Opts
opts
Opts