changed import

This commit is contained in:
Waradu 2024-10-20 10:13:55 +02:00
parent 7a043ac160
commit 35fd495437
No known key found for this signature in database
GPG key ID: F85AAC8BA8B8DAAD

View file

@ -1,5 +1,5 @@
use clap::{CommandFactory, Parser}; use clap::{CommandFactory, Parser};
use streamshare::upload; use streamshare::{delete, upload};
#[derive(Parser, Debug)] #[derive(Parser, Debug)]
#[command(version, about, long_about = None)] #[command(version, about, long_about = None)]
@ -21,7 +21,7 @@ async fn main() {
if let Some(delete_param) = args.delete { if let Some(delete_param) = args.delete {
if let Some((file_identifier, deletion_token)) = parse_delete_param(&delete_param) { if let Some((file_identifier, deletion_token)) = parse_delete_param(&delete_param) {
match streamshare::delete(file_identifier, deletion_token).await { match delete(file_identifier, deletion_token).await {
Ok(_) => println!("File deleted successfully"), Ok(_) => println!("File deleted successfully"),
Err(e) => eprintln!("Error deleting file: {}", e), Err(e) => eprintln!("Error deleting file: {}", e),
} }