radix-clis 1.4.0

A collection of CLIs for developing, building and testing Scrypto code, from the Radix DLT project.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use clap::Parser;

use crate::resim::*;

/// Reset this simulator
#[derive(Parser, Debug)]
pub struct Reset {}

impl Reset {
    pub fn run<O: std::io::Write>(&self, out: &mut O) -> Result<(), String> {
        SimulatorEnvironment::new_reset()?;
        writeln!(out, "Data directory cleared.").map_err(Error::IOError)?;
        Ok(())
    }
}