From 1187e4f0b5414ccf1d5a84b9ab0284c9cebbb9af Mon Sep 17 00:00:00 2001 From: krolxon Date: Thu, 9 May 2024 00:30:46 +0530 Subject: remove cli mod, dependent methods --- src/cli.rs | 43 ------------------------------------------- 1 file changed, 43 deletions(-) delete mode 100755 src/cli.rs (limited to 'src/cli.rs') 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, -} - -#[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, - -} -- cgit v1.2.3