pub async fn command_write_metaplex_items(
    arweave: &Arweave,
    glob_str: &str,
    manifest_str: &str,
    log_dir: &str,
    link_file: bool,
) -> CommandResult {
    let paths_iter = glob(glob_str)?.filter_map(Result::ok);
    let num_paths: usize = paths_iter.collect::<Vec<PathBuf>>().len();
    let manifest_path = PathBuf::from(manifest_str);

    arweave
        .write_metaplex_items(
            glob(glob_str)?.filter_map(Result::ok),
            manifest_path,
            PathBuf::from(log_dir),
            link_file,
        )
        .await?;

    println!(
        "Successfully wrote metaplex items for {} metadata files to {}",
        num_paths, log_dir
    );
    Ok(())
}
/// Writes metaplex link items used to create NFTs with candy machine program.
Writes metaplex link items used to create NFTs with candy machine program.
Writes metaplex link items used to create NFTs with candy machine program .
pub async fn command_write_metaplex_items(
    arweave: &Arweave,
    glob_str: &str,
    manifest_str: &str,
    log_dir: &str,
    link_file: bool,
) -> CommandResult {
    let paths_iter = glob(glob_str)?.filter_map(Result::ok);
    let num_paths: usize = paths_iter.collect::<Vec<PathBuf>>().len();
    let manifest_path = PathBuf::from(manifest_str);
    arweave
        .write_metaplex_items(
            glob(glob_str)?.filter_map(Result::ok),
            manifest_path,
            PathBuf::from(log_dir),
            link_file,
        )
        .await?;
    println!(
        "Successfully wrote metaplex items for {} metadata files to {}",
        num_paths, log_dir
    );
    Ok(())
}
pub async fn command_write_metaplex_items ( arweave : & Arweave , glob_str : & str , manifest_str : & str , log_dir : & str , link_file : bool , ) -> CommandResult { let paths_iter = glob ( glob_str ) ? . filter_map ( Result :: ok ) ; let num_paths : usize = paths_iter . collect :: < Vec < PathBuf > > ( ) . len ( ) ; let manifest_path = PathBuf :: from ( manifest_str ) ; arweave . write_metaplex_items ( glob ( glob_str ) ? . filter_map ( Result :: ok ) , manifest_path , PathBuf :: from ( log_dir ) , link_file , ) . await ? ; println ! ( " " num_paths log_dir ) ; Ok ( ( ) ) }
Writes metaplex link items used to create NFTs with candy machine program.
Writes metaplex link items used to create NFTs with candy machine program .
arweave
&Arweave
glob_str
&str
manifest_str
&str
log_dir
&str
link_file
bool
arweave
&Arweave
glob_str
&str
manifest_str
&str
log_dir
&str
link_file
bool