[main] Move prog id to program from sync
This commit is contained in:
parent
3dec191afa
commit
7f78863e8a
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue