mirror of
https://github.com/Waradu/to-streamshare.git
synced 2025-04-22 04:14:06 +02:00
changed import
This commit is contained in:
parent
7a043ac160
commit
35fd495437
1 changed files with 2 additions and 2 deletions
|
@ -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),
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue