-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add hkts #3
base: master
Are you sure you want to change the base?
Conversation
) | ||
.orFalse | ||
|
||
private val downloadFlag: Opts[Boolean] = Opts | ||
private val futureFlag: Opts[Boolean] = Opts |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's do with zio too. Instead of future flag use enum
@@ -30,20 +30,21 @@ object Cli { | |||
.option[Int]("img_size", help = "Image size 1-1280 (default - 1000)") | |||
.withDefault(1000) | |||
|
|||
private val inputFile: Opts[String] = | |||
private val inputFile: Opts[FilePath] = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
support multiple input files. So you can pass a dir instead and then create image per file
)(implicit | ||
ME: MonadError[F, Throwable] | ||
): F[Unit] = { | ||
val request = basicRequest.get(uri"${uri.toString}").response(asByteArray) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not safe. Exception can be thrown
@@ -8,47 +8,61 @@ Create an image of a map with given point coordinates. | |||
You need to have [SBT](https://www.scala-sbt.org/download.html) installed on your machine to run this project. | |||
|
|||
## Installation |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
make readme a little bit more readable
```bash | ||
$ sbt | ||
sbt: geopoint-visualizer> run plot --swap --download --browser --img_size 1000 --input "inputDir/input.json" | ||
$ docker run\ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you must mention all optional flags and default values
Implemented support for both Futures and IO using HKTs, implemented docker support, implemented ci cd, implemented unit and integration tests