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
use read_input::prelude::*;

/// Function to collect paths interactively using `read_input`
pub fn collect_paths_interactively() -> (String, String) {
    let services_path: String = input().msg("Enter the path to services.json: ").get();

    let config_path: String = input().msg("Enter the path to config.toml: ").get();

    (services_path, config_path)
}