summaryrefslogtreecommitdiff
path: root/vegilctl
diff options
context:
space:
mode:
Diffstat (limited to 'vegilctl')
-rw-r--r--vegilctl/Cargo.toml8
-rw-r--r--vegilctl/src/args_dispatcher.rs0
-rw-r--r--vegilctl/src/main.rs40
3 files changed, 0 insertions, 48 deletions
diff --git a/vegilctl/Cargo.toml b/vegilctl/Cargo.toml
deleted file mode 100644
index 0a89458..0000000
--- a/vegilctl/Cargo.toml
+++ /dev/null
@@ -1,8 +0,0 @@
-[package]
-name = "vegilctl"
-version = "0.1.0"
-edition = "2024"
-description = "Vegil init user control."
-
-[dependencies]
-clap = { version = "4.5.53", features = [ "derive"]}
diff --git a/vegilctl/src/args_dispatcher.rs b/vegilctl/src/args_dispatcher.rs
deleted file mode 100644
index e69de29..0000000
--- a/vegilctl/src/args_dispatcher.rs
+++ /dev/null
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);
-}