[main] Convert app to cats-effect IOApp
This commit is contained in:
parent
fb6d8073c4
commit
a79c3320a5
1 changed files with 6 additions and 4 deletions
|
@ -1,9 +1,11 @@
|
||||||
package net.kemitix.s3thorp
|
package net.kemitix.s3thorp
|
||||||
|
|
||||||
object Main {
|
import cats.effect.{ExitCode, IO, IOApp}
|
||||||
|
import cats.syntax.all._
|
||||||
|
|
||||||
def main(args: Array[String]): Unit = {
|
object Main extends IOApp {
|
||||||
println("S3Thorp - hashed sync for s3")
|
|
||||||
}
|
override def run(args: List[String]): IO[ExitCode] =
|
||||||
|
IO(println("S3Thorp - hashed sync for s3")).as(ExitCode.Success)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue