probe-rs-tools 0.32.0

A collection of on chip debugging tools to communicate with microchips.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use crate::{
    cmd::common::info::basic_info, rpc::client::RpcClient, util::common_options::ProbeOptions,
};

#[derive(clap::Parser)]
#[group(skip)]
pub struct Cmd {
    #[clap(flatten)]
    probe: ProbeOptions,
}

impl Cmd {
    pub async fn run(self, client: RpcClient) -> anyhow::Result<()> {
        let info = basic_info(&client, self.probe).await?;
        println!("{}", serde_json::to_string(&info)?);
        Ok(())
    }
}