endpoint-validator 0.1.0

Interactive test harness for endpoint-libs WebSocket RPC services: reads the endpoint description generated by endpoint-gen and exercises every endpoint with preset parameters.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use clap::Parser;

/// Command-line arguments structure using `clap`
#[derive(Parser, Debug)]
#[command(name = "endpoint_validator")]
#[command(about = "A tool to validate service endpoints")]
pub struct Cli {
    /// Path to the services.json file
    #[arg(long)]
    pub services_path: Option<String>,
    #[arg(long)]
    pub config_path: Option<String>,
}

/// Function to parse command-line arguments
pub fn parse_args() -> Cli {
    Cli::parse()
}