sim-cli 0.23.0

CLI tool for running and comparing Solana simulator backtests
Documentation
//! The library behind the `sim` CLI. It is not a supported API: any release can change it.
//!
//! Install the CLI with `cargo install sim-cli --locked`. To use the simulator from Rust, depend
//! on [`simulator-client`](https://docs.rs/simulator-client) instead.

use clap::Args;

pub mod args;
pub mod client;
#[doc(hidden)]
pub mod engine;
#[doc(hidden)]
pub mod signals;

#[derive(Debug, Clone, Args)]
pub struct ApiKeyArg {
    /// Your simulator API key. Set SIMULATOR_API_KEY to avoid passing it on
    /// every command.
    #[arg(long, env = "SIMULATOR_API_KEY", hide_env_values = true)]
    pub api_key: String,
}

impl ApiKeyArg {
    pub fn get(&self) -> String {
        self.api_key.clone()
    }
}