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

coursier.cli.setup.SetupStep.scala Maven / Gradle / Ivy

There is a newer version: 2.1.13
Show newest version
package coursier.cli.setup

import java.io.PrintStream

import coursier.util.Task

trait SetupStep {
  def banner: String
  def task: Task[Unit]
  def tryRevert: Task[Unit]

  final def fullTask(out: PrintStream): Task[Unit] =
    for {
      _ <- Task.delay(out.println(banner))
      _ <- task
      _ <- Task.delay(out.println())
    } yield ()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy