sim_cli/lib.rs
1//! Library surface backing the `sim` binary.
2//!
3//! These modules are an internal, semver-exempt API consumed by in-workspace
4//! tools (e.g. `backtest-driver`); the published artifact is the binary.
5
6use clap::Args;
7
8#[doc(hidden)]
9pub mod engine;
10#[doc(hidden)]
11pub mod signals;
12
13#[derive(Debug, Clone, Args)]
14pub struct ApiKeyArg {
15 /// API key for authentication
16 #[arg(long, env = "SIMULATOR_API_KEY")]
17 pub api_key: String,
18}
19
20impl ApiKeyArg {
21 pub fn get(&self) -> String {
22 self.api_key.clone()
23 }
24}