23 lines
567 B
Rust
23 lines
567 B
Rust
// Copyright 2021 - Nym Technologies SA <contact@nymtech.net>
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
use clap::{Args, Subcommand};
|
|
|
|
pub mod query_all_gateways;
|
|
pub mod query_all_mixnodes;
|
|
|
|
#[derive(Debug, Args)]
|
|
#[clap(args_conflicts_with_subcommands = true, subcommand_required = true)]
|
|
pub struct MixnetQuery {
|
|
#[clap(subcommand)]
|
|
pub command: MixnetQueryCommands,
|
|
}
|
|
|
|
#[derive(Debug, Subcommand)]
|
|
pub enum MixnetQueryCommands {
|
|
/// Query mixnodes
|
|
Mixnodes(query_all_mixnodes::Args),
|
|
/// Query gateways
|
|
Gateways(query_all_gateways::Args),
|
|
}
|