← ZIO Cli docs

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

Source
PrimType.scala
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]

Attributes

Source
PrimType.scala

Inherited methods

Attributes

Inherited from:
Product

Attributes

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

Attributes

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

Attributes

Inherited from:
PrimType
Source
PrimType.scala

Concrete fields

lazy val choices: Option[String]

Attributes

Source
PrimType.scala
lazy val helpDoc: Span

Attributes

Source
PrimType.scala
lazy val isBool: Boolean

Attributes

Source
PrimType.scala
lazy val typeName: String

Attributes

Source
PrimType.scala