mirror of
https://github.com/timvisee/ffsend.git
synced 2025-02-01 04:01:36 +01:00
Merge branch 'only-output-link' into 'master'
Only output link to stdout See merge request timvisee/ffsend!28
This commit is contained in:
commit
1edf1f8485
@ -292,27 +292,35 @@ impl<'a> Upload<'a> {
|
||||
}
|
||||
}
|
||||
|
||||
// Show the share URL
|
||||
table.add_row(Row::new(vec![
|
||||
Cell::new("Share link:"),
|
||||
Cell::new(url.as_str()),
|
||||
]));
|
||||
|
||||
// Show a generate passphrase
|
||||
if password_generated {
|
||||
table.add_row(Row::new(vec![
|
||||
Cell::new("Passphrase:"),
|
||||
Cell::new(&password.unwrap_or("?".into())),
|
||||
]));
|
||||
}
|
||||
|
||||
// Show the owner token
|
||||
if matcher_main.verbose() {
|
||||
// Show the share URL
|
||||
table.add_row(Row::new(vec![
|
||||
Cell::new("Share link:"),
|
||||
Cell::new(url.as_str()),
|
||||
]));
|
||||
|
||||
// Show a generate passphrase
|
||||
if password_generated {
|
||||
table.add_row(Row::new(vec![
|
||||
Cell::new("Passphrase:"),
|
||||
Cell::new(&password.unwrap_or("?".into())),
|
||||
]));
|
||||
}
|
||||
|
||||
// Show the owner token
|
||||
table.add_row(Row::new(vec![
|
||||
Cell::new("Owner token:"),
|
||||
Cell::new(file.owner_token().unwrap()),
|
||||
]));
|
||||
} else {
|
||||
table.add_row(Row::new(vec![Cell::new(url.as_str())]));
|
||||
|
||||
// Show a generate passphrase
|
||||
if password_generated {
|
||||
table.add_row(Row::new(vec![Cell::new(&password.unwrap_or("?".into()))]));
|
||||
}
|
||||
}
|
||||
|
||||
table.printstd();
|
||||
} else {
|
||||
println!("{}", url);
|
||||
|
Loading…
x
Reference in New Issue
Block a user