From a79c3320a51383ae40849166ca846ee245eda611 Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Mon, 29 Apr 2019 20:24:10 +0100 Subject: [PATCH] [main] Convert app to cats-effect IOApp --- src/main/scala/net/kemitix/s3thorp/Main.scala | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/main/scala/net/kemitix/s3thorp/Main.scala b/src/main/scala/net/kemitix/s3thorp/Main.scala index e9fd40b..05b83eb 100644 --- a/src/main/scala/net/kemitix/s3thorp/Main.scala +++ b/src/main/scala/net/kemitix/s3thorp/Main.scala @@ -1,9 +1,11 @@ package net.kemitix.s3thorp -object Main { +import cats.effect.{ExitCode, IO, IOApp} +import cats.syntax.all._ - def main(args: Array[String]): Unit = { - println("S3Thorp - hashed sync for s3") - } +object Main extends IOApp { + + override def run(args: List[String]): IO[ExitCode] = + IO(println("S3Thorp - hashed sync for s3")).as(ExitCode.Success) }