Skip to content
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

Draft
wants to merge 39 commits into
base: master
Choose a base branch
from
Draft

Add hkts #3

wants to merge 39 commits into from

Conversation

arnasbr
Copy link
Collaborator

@arnasbr arnasbr commented Sep 25, 2023

Implemented support for both Futures and IO using HKTs, implemented docker support, implemented ci cd, implemented unit and integration tests

@arnasbr arnasbr self-assigned this Sep 25, 2023
@arnasbr arnasbr marked this pull request as draft September 26, 2023 09:33
@arnasbr arnasbr marked this pull request as ready for review September 27, 2023 11:46
integrationTest.sh Outdated Show resolved Hide resolved
)
.orFalse

private val downloadFlag: Opts[Boolean] = Opts
private val futureFlag: Opts[Boolean] = Opts

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] =

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

src/main/scala/HelperUtils.scala Outdated Show resolved Hide resolved
)(implicit
ME: MonadError[F, Throwable]
): F[Unit] = {
val request = basicRequest.get(uri"${uri.toString}").response(asByteArray)

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

src/main/scala/UnsafeRun.scala Show resolved Hide resolved
build.sbt Show resolved Hide resolved
build.sbt Outdated Show resolved Hide resolved
@@ -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

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\

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

@arnasbr arnasbr removed their assignment Aug 19, 2024
@arnasbr arnasbr marked this pull request as draft September 30, 2024 11:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants