All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.chrisdavenport.osdetect.OSDetectCompanionPlatform.scala Maven / Gradle / Ivy

The newest version!
package io.chrisdavenport.osdetect

import cats.effect._

private[osdetect] trait OSDetectCompanionPlatform {
  def getRawOS[F[_]: Sync]: F[String] = {
    Sync[F].delay(System.getProperty("os.name"))
  }

  def getRawVersion[F[_]: Sync]: F[String] = {
    Sync[F].delay(System.getProperty("os.version"))
  }

  def getRawArch[F[_]: Sync]: F[String] = {
    Sync[F].delay(System.getProperty("os.arch"))
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy