A: A4 peer list and one-shot peer check CLI
This commit is contained in:
1 parent
7d10153677
commit
2eb1d2a78b
5 files changed
+342
-2
No files matched your search
@@ -11,6 +11,7 @@ use tokio_util::sync::CancellationToken;
|
||||
|
||||
use skyg_linux_tracker::auth::tokens::{self, TokenCmd};
|
||||
use skyg_linux_tracker::config::{CliOverrides, Config};
|
||||
use skyg_linux_tracker::peers::cli::{self, PeerCmd};
|
||||
use skyg_linux_tracker::peers::registry::PeersReloader;
|
||||
use skyg_linux_tracker::peers::PeerRegistry;
|
||||
use skyg_linux_tracker::state::AppState;
|
||||
@@ -65,6 +66,11 @@ enum Command {
|
||||
#[command(subcommand)]
|
||||
cmd: TokenCmd,
|
||||
},
|
||||
/// Inspect configured peers (read-only).
|
||||
Peer {
|
||||
#[command(subcommand)]
|
||||
cmd: PeerCmd,
|
||||
},
|
||||
}
|
||||
|
||||
impl Cli {
|
||||
@@ -100,6 +106,7 @@ async fn main() -> Result<()> {
|
||||
match cli.command.unwrap_or(Command::Serve) {
|
||||
Command::Serve => serve(config, config_path, overrides).await,
|
||||
Command::Token { cmd } => tokens::run(cmd, &config).await,
|
||||
Command::Peer { cmd } => cli::run(cmd, &config).await,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user