Path

zio.cli.PrimType.Path
final case class Path(pathType: PathType, shouldExist: Exists, fileSystem: FileSystem) extends PrimType[JPath]

Type representing file system path.

Value parameters

fileSystem

Implementation of FileSystem trait.

pathType

Type of expected path: Directory, File or Either if both are acceptable.

shouldExist

Yes if path is expected to exists, No otherwise or Either is both are acceptable.

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait PrimType[JPath]
class Object
trait Matchable
class Any
Show all
Self type

Members list

Value members

Concrete methods

def validate(value: Option[String], conf: CliConfig): IO[String, JPath]

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product
final def validate(value: String, conf: CliConfig): IO[String, JPath]

Attributes

Inherited from:
PrimType
final def validate(value: String): IO[String, JPath]

Attributes

Inherited from:
PrimType

Concrete fields

lazy val choices: Option[String]
lazy val helpDoc: Span
lazy val isBool: Boolean
lazy val typeName: String