ic-query-cli 0.91.0

Command-line wrapper for read-only Internet Computer metadata queries
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! Neuron read and cache dispatch.
mod cache;
mod neurons;
use super::{SnsCommandError, spec::sns_command};
pub fn command() -> clap::Command {
    sns_command()
}
pub async fn run_matches(matches: &clap::ArgMatches, network: &str) -> Result<(), SnsCommandError> {
    match matches.subcommand() {
        Some(("neuron", matches)) => neurons::run_sns_neuron(matches, network).await,
        _ => unreachable!("clap requires the neuron command"),
    }
}