aboutsummaryrefslogtreecommitdiff
path: root/src/cli.rs
diff options
context:
space:
mode:
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,
-
-}