[main] Move prog id to program from sync

This commit is contained in:
Paul Campbell 2019-05-06 11:40:15 +01:00
parent 3dec191afa
commit 7f78863e8a

View file

@ -9,12 +9,12 @@ object Main extends IOApp {
def sync(c: Config): IO[Unit] = def sync(c: Config): IO[Unit] =
for { for {
_ <- putStrLn("S3Thorp - hashed sync for s3")
_ <- putStrLn(s"Bucket: ${c.bucket}, Prefix: ${c.prefix}, Source: ${c.source}") _ <- putStrLn(s"Bucket: ${c.bucket}, Prefix: ${c.prefix}, Source: ${c.source}")
} yield () } yield ()
def program(args: List[String]): IO[ExitCode] = def program(args: List[String]): IO[ExitCode] =
for { for {
_ <- putStrLn("S3Thorp - hashed sync for s3")
a <- ParseArgs(args) a <- ParseArgs(args)
_ <- sync(a) _ <- sync(a)
} yield ExitCode.Success } yield ExitCode.Success