Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
davepacheco committed Sep 28, 2023
1 parent d3b85af commit 8297492
Show file tree
Hide file tree
Showing 7 changed files with 268 additions and 156 deletions.
2 changes: 2 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions dev-tools/omdb/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ diesel.workspace = true
dropshot.workspace = true
futures.workspace = true
gateway-client.workspace = true
gateway-messages.workspace = true
gateway-test-utils.workspace = true
humantime.workspace = true
internal-dns.workspace = true
nexus-client.workspace = true
Expand Down
10 changes: 4 additions & 6 deletions dev-tools/omdb/src/bin/omdb/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ use std::net::SocketAddr;
use std::net::SocketAddrV6;

mod db;
mod inventory;
mod mgs;
mod nexus;
mod sled_agent;

Expand All @@ -57,9 +57,7 @@ async fn main() -> Result<(), anyhow::Error> {

match &args.command {
OmdbCommands::Db(db) => db.run_cmd(&args, &log).await,
OmdbCommands::Inventory(inventory) => {
inventory.run_cmd(&args, &log).await
}
OmdbCommands::Mgs(mgs) => mgs.run_cmd(&args, &log).await,
OmdbCommands::Nexus(nexus) => nexus.run_cmd(&args, &log).await,
OmdbCommands::SledAgent(sled) => sled.run_cmd(&args, &log).await,
}
Expand Down Expand Up @@ -157,8 +155,8 @@ impl Omdb {
enum OmdbCommands {
/// Query the control plane database (CockroachDB)
Db(db::DbArgs),
/// Inventory commands
Inventory(inventory::InventoryArgs),
/// Debug a specific Management Gateway Service instance
Mgs(mgs::MgsArgs),
/// Debug a specific Nexus instance
Nexus(nexus::NexusArgs),
/// Debug a specific Sled
Expand Down
Loading

0 comments on commit 8297492

Please sign in to comment.