aboutsummaryrefslogtreecommitdiff
path: root/src/cli.rs
diff options
context:
space:
mode:
authorkrolxon <krolyxon@tutanota.com>2024-05-09 00:30:46 +0530
committerkrolxon <krolyxon@tutanota.com>2024-05-09 00:30:46 +0530
commit1187e4f0b5414ccf1d5a84b9ab0284c9cebbb9af (patch)
tree00dacce698c05606a51f731e08589d702399863d /src/cli.rs
parentcef5f734780b767301bae6928d106a6d48c8dff8 (diff)
remove cli mod, dependent methods
Diffstat (limited to 'src/cli.rs')
-rwxr-xr-xsrc/cli.rs43
1 files changed, 0 insertions, 43 deletions
diff --git a/src/cli.rs b/src/cli.rs
deleted file mode 100755
index 2992952..0000000
--- a/src/cli.rs
+++ /dev/null
@@ -1,43 +0,0 @@
-use clap::{Parser, Subcommand};
-
-#[derive(Parser, Debug)]
-#[clap(version, about, author = "krolyxon")]
-/// MPD client made with Rust
-pub struct Args {
- /// No TUI
- #[arg(short= 'n', default_value="false")]
- pub tui: bool,
-
- #[command(subcommand)]
- pub command: Option<Command>,
-}
-
-#[derive(Debug, Subcommand)]
-pub enum Command {
- #[command(arg_required_else_help = true, long_flag = "volume" , short_flag = 'v')]
- /// Set Volume
- Volume {
- vol: String,
- },
-
- /// Use dmenu for selection
- #[command(long_flag = "dmenu" , short_flag = 'd')]
- Dmenu,
-
- /// Use Fzf for selection
- #[command(long_flag = "fzf" , short_flag = 'f')]
- Fzf,
-
- /// Check Status
- #[command(long_flag = "status" , short_flag = 's')]
- Status,
-
- /// Pause playback
- #[command(long_flag = "pause" , short_flag = 'p')]
- Pause,
-
- /// Toggle Playback
- #[command(long_flag = "toggle" , short_flag = 't')]
- Toggle,
-
-}