mirror of
https://github.com/Waradu/to-streamshare.git
synced 2025-04-21 20:04:06 +02:00
you can now see progress in the output
This commit is contained in:
parent
591930bdef
commit
7a043ac160
3 changed files with 8 additions and 8 deletions
|
@ -20,8 +20,8 @@ async fn main() {
|
|||
let args = Args::parse();
|
||||
|
||||
if let Some(delete_param) = args.delete {
|
||||
if let Some((identifier, deltoken)) = parse_delete_param(&delete_param) {
|
||||
match streamshare::delete(identifier, deltoken).await {
|
||||
if let Some((file_identifier, deletion_token)) = parse_delete_param(&delete_param) {
|
||||
match streamshare::delete(file_identifier, deletion_token).await {
|
||||
Ok(_) => println!("File deleted successfully"),
|
||||
Err(e) => eprintln!("Error deleting file: {}", e),
|
||||
}
|
||||
|
@ -29,7 +29,7 @@ async fn main() {
|
|||
eprintln!("Invalid format for --delete. Use 'file_identifier/deletion_token' (e.g., 'abc123/def456')");
|
||||
}
|
||||
} else if let Some(file_path) = args.file {
|
||||
match upload(&file_path).await {
|
||||
match upload(&file_path, true).await {
|
||||
Ok((file_identifier, deletion_token)) => {
|
||||
let download_url = format!(
|
||||
"https://streamshare.wireway.ch/download/{}",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue