mirror of
https://github.com/sergi0g/cup.git
synced 2025-11-11 22:53:48 -05:00
fix issue #30 with raw returning invalid json
This commit is contained in:
@@ -97,12 +97,10 @@ async fn main() {
|
|||||||
}
|
}
|
||||||
None => {
|
None => {
|
||||||
let start = Local::now().timestamp_millis();
|
let start = Local::now().timestamp_millis();
|
||||||
match *raw || cli.verbose {
|
match raw {
|
||||||
true => {
|
true => {
|
||||||
let updates = get_all_updates(&cli_config).await;
|
let updates = get_all_updates(&cli_config).await;
|
||||||
let end = Local::now().timestamp_millis();
|
|
||||||
print_raw_updates(&updates);
|
print_raw_updates(&updates);
|
||||||
info!("✨ Checked {} images in {}ms", updates.len(), end - start);
|
|
||||||
}
|
}
|
||||||
false => {
|
false => {
|
||||||
let spinner = Spinner::new();
|
let spinner = Spinner::new();
|
||||||
|
|||||||
Reference in New Issue
Block a user