Created
June 20, 2024 21:14
-
-
Save Invizory/1ef9940c7347a2e48050c7ff51e02aae to your computer and use it in GitHub Desktop.
Decline argument parser for fs2.io.file.Path
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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