From 1f0445952332d96acadecb936d9eaa7169d52082 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Mon, 7 Oct 2024 19:43:13 +0200 Subject: feat(cli): Add a `add` command This command allows adding URLs directly. Otherwise, the process would be: `yt subs add ` -> `yt update` -> `yt subs remove ` --- src/cli.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/cli.rs') diff --git a/src/cli.rs b/src/cli.rs index 51809c0..d19586e 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -238,6 +238,10 @@ pub enum SelectCommand { use_last_selection: bool, }, + /// Add a video to the database + #[command(visible_alias = "a")] + Add { urls: Vec }, + /// Mark the video given by the hash to be watched #[command(visible_alias = "w")] Watch { -- cgit 1.4.1