case-app
case-app copied to clipboard
Type-level & seamless command-line argument parsing for Scala
Using a custom parser in a command leads to an error when called with --help (if any (custom) required argument is not passed): Main.scala: ``` sealed trait UtilsCommand extends Command...
Just some fancy features that I think would be cool to have. It would be nice if the --help message could - show the default values for options with default...
Maybe I'm a bit picky, but [the Scala style guide](http://docs.scala-lang.org/style/naming-conventions.html#annotations) recommends annotation names to be in lower camel case like `@appName`. Unless there are a certain reason, how about following...
Make it more readable. (Generated, à la scalatex?) Note about the different versions (which shapeless version they depend on, ...)
Annotations (`@ExtraName`, `@AppName`, `@AppVersion`, ...) expect litteral arguments. They'll likely crash with variable arguments. Add a note about that in doc.
They have to be unwrapped (...), to get the relevant value (the `Int` out of `verbose: Int @@ Counter` say). Add a note about it in README, and/or remove them...
Hi, Would you be open for me to open a PR to support `scala.concurrent.duration.{Duration, FiniteDuration}`? As in: ```scala implicit val durationParser: ArgParser[Duration] = SimpleArgParser.from[Duration]("Duration")(s => Either.catchOnly[NumberFormatException](Duration(s)).leftMap(e => MalformedValue("Duration", e.getMessage)) )...
It seems it's do-able, see [this question](https://stackoverflow.com/questions/65386043/unit-testing-zsh-completion-script) and [this one](https://unix.stackexchange.com/questions/668618/how-to-write-automated-tests-for-zsh-completion).
## About this PR 📦 Updates * [org.scala-native:nscplugin](https://github.com/scala-native/scala-native) * [org.scala-native:sbt-scala-native](https://github.com/scala-native/scala-native) * [org.scala-native:scala3lib](https://github.com/scala-native/scala-native) * [org.scala-native:scalalib](https://github.com/scala-native/scala-native) * [org.scala-native:test-interface](https://github.com/scala-native/scala-native) from `0.4.16` to `0.4.17` 📜 [GitHub Release Notes](https://github.com/scala-native/scala-native/releases/tag/v0.4.17) - [Version Diff](https://github.com/scala-native/scala-native/compare/v0.4.16...v0.4.17) ## Usage ✅...
## About this PR 📦 Updates [org.typelevel:cats-effect](https://github.com/typelevel/cats-effect) from `3.5.2` to `3.5.3` 📜 [GitHub Release Notes](https://github.com/typelevel/cats-effect/releases/tag/v3.5.3) - [Version Diff](https://github.com/typelevel/cats-effect/compare/v3.5.2...v3.5.3) ## Usage ✅ **Please merge!** I'll automatically update this PR to resolve...