about summary refs log tree commit diff stats
path: root/src/cli.rs
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-08-23 09:03:01 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-08-23 09:03:01 +0200
commitce5524775bb7a7f34f92ee732c7e4df29142cf00 (patch)
tree8ce8b3fcd3682de5a6950b5088ebf475e0814a9b /src/cli.rs
parentfix(storage/schema.sql): Tell SQLite to perform type-checking (diff)
downloadyt-ce5524775bb7a7f34f92ee732c7e4df29142cf00.tar.gz
yt-ce5524775bb7a7f34f92ee732c7e4df29142cf00.zip
feat(cli): Add an explicit `subs export` subcommand
This subcommand is functionally identical with the previous `subs list --url`,
but semantically it improves the situation, by having symmetrical
`import` and `export` subcommands.
Diffstat (limited to 'src/cli.rs')
-rw-r--r--src/cli.rs8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/cli.rs b/src/cli.rs
index ba92be3..6f5abd2 100644
--- a/src/cli.rs
+++ b/src/cli.rs
@@ -180,13 +180,11 @@ pub enum SubscriptionCommand {
         #[arg(short, long)]
         force: bool,
     },
+    /// Write all subscriptions in an format understood by `import`
+    Export {},
 
     /// List all subscriptions
-    List {
-        /// Only show the URLs
-        #[arg(short, long)]
-        url: bool,
-    },
+    List {},
 }
 
 #[derive(Clone, Debug, Args)]