diff options
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/main.rs b/src/main.rs index 3852b8e..7852aa0 100644 --- a/src/main.rs +++ b/src/main.rs @@ -108,17 +108,17 @@ async fn main() -> Result<()> { .await .context("Failed to remove a subscription")?; } - SubscriptionCommand::List { url } => { + SubscriptionCommand::List {} => { let all_subs = get_subscriptions(&app).await?; - if url { - for val in all_subs.0.values() { - println!("{}", val.url); - } - } else { - for (key, val) in all_subs.0 { - println!("{}: '{}'", key, val.url); - } + for (key, val) in all_subs.0 { + println!("{}: '{}'", key, val.url); + } + } + SubscriptionCommand::Export {} => { + let all_subs = get_subscriptions(&app).await?; + for val in all_subs.0.values() { + println!("{}", val.url); } } SubscriptionCommand::Import { file, force } => { |