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

bleep.commands.BuildNormalize.scala Maven / Gradle / Ivy

There is a newer version: 0.0.12
Show newest version
package bleep
package commands

import bleep.internal.writeYamlLogged
import bleep.rewrites.normalizeBuild

object BuildNormalize extends BleepBuildCommand {
  override def run(started: Started): Either[BleepException, Unit] = {
    val build = started.build.requireFileBacked(ctx = "command normalize")
    val build1 = normalizeBuild(build, started.buildPaths)
    Right(writeYamlLogged(started.logger, "Wrote update build", build1.file, started.buildPaths.bleepYamlFile))
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy