GeneratedSource

scala.build.GeneratedSource
final case class GeneratedSource(generated: Path, reportingPath: Either[String, Path], wrapperParamsOpt: Option[WrapperParams])

Represents a source that's not originally in the user's workspace, yet it's a part of the project. It can either be synthetically generated by Scala CLI, e.g. BuildInfo or just modified, e.g. script wrappers

Value parameters

generated

path to the file created by Scala CLI

reportingPath

the origin of the source:

  • Left(String): there's no path that corresponds to the source it may be a snippet or a gist etc.
  • Right(os.Path): this source has been generated based on a file at this path
wrapperParamsOpt

if the generated source is a script wrapper then the params are present here

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product