From 5874ea396371013535e3532cc1a7c73d9b103d4a Mon Sep 17 00:00:00 2001 From: Taha Hawa Date: Tue, 8 Apr 2025 15:57:22 -0400 Subject: [PATCH] Add new harmony_cli sub-crate --- Cargo.lock | 34 ++++++++++++++++++++++++++++++++++ Cargo.toml | 9 +++++---- harmony_cli/Cargo.toml | 9 +++++++++ harmony_cli/src/main.rs | 3 +++ 4 files changed, 51 insertions(+), 4 deletions(-) create mode 100644 harmony_cli/Cargo.toml create mode 100644 harmony_cli/src/main.rs diff --git a/Cargo.lock b/Cargo.lock index f9c279f..f047624 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -371,6 +371,33 @@ dependencies = [ "inout", ] +[[package]] +name = "clap" +version = "4.5.35" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d8aa86934b44c19c50f87cc2790e19f54f7a67aedb64101c2e1a2e5ecfb73944" +dependencies = [ + "clap_builder", +] + +[[package]] +name = "clap_builder" +version = "4.5.35" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2414dbb2dd0695280da6ea9261e327479e9d37b0630f6b53ba2a11c60c679fd9" +dependencies = [ + "anstream", + "anstyle", + "clap_lex", + "strsim", +] + +[[package]] +name = "clap_lex" +version = "0.7.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f46ad14479a25103f283c0f10005961cf086d8dc42205bb44c46ac563475dca6" + [[package]] name = "color-eyre" version = "0.6.3" @@ -1166,6 +1193,13 @@ dependencies = [ "uuid", ] +[[package]] +name = "harmony_cli" +version = "0.1.0" +dependencies = [ + "clap", +] + [[package]] name = "harmony_macros" version = "0.1.0" diff --git a/Cargo.toml b/Cargo.toml index c36cd27..4ba83eb 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,6 +9,7 @@ members = [ "harmony_tui", "opnsense-config", "opnsense-config-xml", + "harmony_cli", ] [workspace.package] @@ -28,7 +29,7 @@ russh-keys = "0.45.0" rand = "0.8.5" url = "2.5.4" kube = "0.98.0" -k8s-openapi = { version = "0.24.0", features = [ "v1_30" ] } +k8s-openapi = { version = "0.24.0", features = ["v1_30"] } serde_yaml = "0.9.34" serde-value = "0.7.0" http = "1.2.0" @@ -36,7 +37,7 @@ http = "1.2.0" [workspace.dependencies.uuid] version = "1.11.0" features = [ - "v4", # Lets you generate random UUIDs - "fast-rng", # Use a faster (but still sufficiently random) RNG - "macro-diagnostics", # Enable better diagnostics for compile-time UUIDs + "v4", # Lets you generate random UUIDs + "fast-rng", # Use a faster (but still sufficiently random) RNG + "macro-diagnostics", # Enable better diagnostics for compile-time UUIDs ] diff --git a/harmony_cli/Cargo.toml b/harmony_cli/Cargo.toml new file mode 100644 index 0000000..a838eda --- /dev/null +++ b/harmony_cli/Cargo.toml @@ -0,0 +1,9 @@ +[package] +name = "harmony_cli" +edition = "2024" +version.workspace = true +readme.workspace = true +license.workspace = true + +[dependencies] +clap = "4.5.35" diff --git a/harmony_cli/src/main.rs b/harmony_cli/src/main.rs new file mode 100644 index 0000000..e7a11a9 --- /dev/null +++ b/harmony_cli/src/main.rs @@ -0,0 +1,3 @@ +fn main() { + println!("Hello, world!"); +}