soroban_cli/commands/cache/
path.rs

1use crate::config::{data, locator};
2
3#[derive(thiserror::Error, Debug)]
4pub enum Error {
5    #[error(transparent)]
6    Config(#[from] locator::Error),
7    #[error(transparent)]
8    Data(#[from] data::Error),
9}
10
11#[derive(Debug, clap::Parser, Clone)]
12#[group(skip)]
13pub struct Cmd {}
14
15impl Cmd {
16    pub fn run(&self) -> Result<(), Error> {
17        println!("{}", data::data_local_dir()?.to_string_lossy());
18        Ok(())
19    }
20}