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

Replace scopt with decline #3

Open
mtomko opened this issue Nov 28, 2022 · 0 comments
Open

Replace scopt with decline #3

mtomko opened this issue Nov 28, 2022 · 0 comments
Milestone

Comments

@mtomko
Copy link
Collaborator

mtomko commented Nov 28, 2022

Replace the scopt command-line parser with decline

In doing so, the config objects could be significantly reworked or simplified, for instance the myriad of fields related to specifying the input files could be replaced with an ADT such as:

import java.nio.file.Path

import cats.data.{NonEmptyList => Nel}

sealed trait ReadsSource extends Product with Serializable

object ReadsSource {

  final case class SelfContained(path: Nel[Path]) extends ReadsSource
  final case class Split(index: Nel[Path], forward: Nel[Path]) extends ReadsSource
  final case class PairedEnd(index: Nel[Path], forward: Nel[Path], reverse: Nel[Path]) extends ReadsSource

}
@mtomko mtomko added this to the 4.0.0 milestone Nov 28, 2022
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

No branches or pull requests

1 participant