Skip to main content

systemprompt_cli/
environment.rs

1#[derive(Debug, Clone, Copy)]
2pub struct ExecutionEnvironment {
3    pub is_fly: bool,
4    pub is_remote_cli: bool,
5}
6
7impl ExecutionEnvironment {
8    pub fn detect() -> Self {
9        Self {
10            is_fly: std::env::var("FLY_APP_NAME").is_ok(),
11            is_remote_cli: std::env::var("SYSTEMPROMPT_CLI_REMOTE").is_ok(),
12        }
13    }
14}