Skip to content

Instantly share code, notes, and snippets.

@Invizory
Created June 20, 2024 21:14
Show Gist options
  • Save Invizory/1ef9940c7347a2e48050c7ff51e02aae to your computer and use it in GitHub Desktop.
Save Invizory/1ef9940c7347a2e48050c7ff51e02aae to your computer and use it in GitHub Desktop.
Decline argument parser for fs2.io.file.Path
import com.monovore.decline.Argument
given readFs2Path(using readNioPath: Argument[java.nio.file.Path]): Argument[fs2.io.file.Path] =
Argument.from(readNioPath.defaultMetavar):
readNioPath.read(_).map(fs2.io.file.Path.fromNioPath)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment