pub async fn command_update_metadata(
    arweave: &Arweave,
    glob_str: &str,
    manifest_str: &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
        .update_metadata(
            glob(glob_str)?.filter_map(Result::ok),
            manifest_path,
            link_file,
        )
        .await?;

    println!("Successfully updated {} metadata files.", num_paths);
    Ok(())
}
/// Updates NFT metadata files from a manifest file.
Updates NFT metadata files from a manifest file.
Updates NFT metadata files from a manifest file .
pub async fn command_update_metadata(
    arweave: &Arweave,
    glob_str: &str,
    manifest_str: &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
        .update_metadata(
            glob(glob_str)?.filter_map(Result::ok),
            manifest_path,
            link_file,
        )
        .await?;
    println!("Successfully updated {} metadata files.", num_paths);
    Ok(())
}
pub async fn command_update_metadata ( arweave : & Arweave , glob_str : & str , manifest_str : & 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 . update_metadata ( glob ( glob_str ) ? . filter_map ( Result :: ok ) , manifest_path , link_file , ) . await ? ; println ! ( " " num_paths ) ; Ok ( ( ) ) }
Updates NFT metadata files from a manifest file.
Updates NFT metadata files from a manifest file .
arweave
&Arweave
glob_str
&str
manifest_str
&str
link_file
bool
arweave
&Arweave
glob_str
&str
manifest_str
&str
link_file
bool