systemprompt_cli/environment.rs
1use crate::env_overrides::EnvOverrides;
2
3#[derive(Debug, Clone, Copy)]
4pub struct ExecutionEnvironment {
5 pub is_fly: bool,
6 pub is_remote_cli: bool,
7}
8
9impl ExecutionEnvironment {
10 #[must_use]
11 pub const fn from_env(env: &EnvOverrides) -> Self {
12 Self {
13 is_fly: env.is_fly,
14 is_remote_cli: env.is_remote_cli,
15 }
16 }
17}