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

com.bilalfazlani.swiftbar4s.dsl.RefreshDsl.scala Maven / Gradle / Ivy

package com.bilalfazlani.swiftbar4s.dsl

import scala.sys.process.*

trait RefreshDsl { this: Environment =>
  def refresh: Unit = {
    runtime.foreach { r =>
      val baseUrl = s"swiftbar://refreshplugin?name=${r.pluginFileName}"
      s"""open "$baseUrl"""".!!
    }
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy