From d114acb6103706e56f7d2090569c354987033d7e Mon Sep 17 00:00:00 2001 From: namilsk Date: Sat, 10 Jan 2026 16:17:21 +0300 Subject: Fixed parts naming --- vegilctl/src/args_dispatcher.rs | 0 vegilctl/src/main.rs | 40 ---------------------------------------- 2 files changed, 40 deletions(-) delete mode 100644 vegilctl/src/args_dispatcher.rs delete mode 100644 vegilctl/src/main.rs (limited to 'vegilctl/src') diff --git a/vegilctl/src/args_dispatcher.rs b/vegilctl/src/args_dispatcher.rs deleted file mode 100644 index e69de29..0000000 diff --git a/vegilctl/src/main.rs b/vegilctl/src/main.rs deleted file mode 100644 index 08ff37c..0000000 --- a/vegilctl/src/main.rs +++ /dev/null @@ -1,40 +0,0 @@ -use clap::{Parser, Subcommand}; - -#[derive(Subcommand, Clone,Debug)] -enum Command { - /// Check Service Status - Status { of: String }, - /// Stop Specified Service - Stop { service: String }, - /// Start Specified Service - Start { service: String }, - /// Start Service after system initialization (Add Service symlink to Vigil service startup - /// list) - Enable { service: String }, - /// Remove Service From Service initialization list - Disable { service: String }, - /// Power Management Commands - #[command(subcommand)] - Power(PowerCommand) -} -#[derive(Subcommand, Clone, Debug)] -enum PowerCommand { - /// Reboot System - Reboot, - /// Poweroff System - Poweroff, - /// Halt - Halt -} -#[derive(Parser)] -#[command(name = "vigilctl")] -#[command(about = "Vigil control manager")] -struct Cli { - #[command(subcommand)] - command: Command, -} -fn main() { - let args = Cli::parse(); - - println!("command: {:?}", args.command); -} -- cgit v1.2.3