namespace OF_DL.Helpers;

public static class EnvironmentHelper
{
    private const string DockerEnvironmentVariableName = "OFDL_DOCKER";

    public static bool IsRunningInDocker()
    {
        string? dockerValue = Environment.GetEnvironmentVariable(DockerEnvironmentVariableName);
        return string.Equals(dockerValue, "true", StringComparison.OrdinalIgnoreCase);
    }

    public static bool IsRunningOnWindows() => OperatingSystem.IsWindows();
}
