CodeExample

fr.janalyse.cem.model.CodeExample
See theCodeExample companion class
object CodeExample

Attributes

Companion
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type

Members list

Type members

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def build(filepath: Option[Path], filename: String, content: String, uuid: UUID, category: Option[String], createdOn: Option[OffsetDateTime], lastUpdated: Option[OffsetDateTime], summary: Option[String], keywords: Set[String], publish: List[String], authors: List[String], runWith: Option[String], testWith: Option[String], managedBy: Option[String], license: Option[String], updatedCount: Option[Int], attachments: Map[String, String], lastSeen: Option[OffsetDateTime]): CodeExample
def buildFromFile(examplePath: Path, fromSearchPath: Path): ZIO[FileSystemService & LMDB, ExampleIssue, CodeExample]
def exampleCategoryFromFilepath(examplePath: Path, searchPath: Path): Option[String]
def exampleContentExtractValue(from: String, key: String): Option[String]
def exampleContentExtractValueList(from: String, key: String): List[String]
def fileLastModified(examplePath: Path): OffsetDateTime
def filenameFromFilepath(filepath: String): String
def getAttachmentContent(examplePath: Path, attachmentFilename: String): ZIO[FileSystemService, ExampleIssue, String]
def getGitMetaData(examplePath: Path, content: String): ZIO[LMDB, ExampleIssue, Option[GitMetaData]]
def upsertExample(examplePath: Path, example: CodeExample): ZIO[LMDB, ExampleStorageIssue, Unit]

Givens

Givens

given given_JsonDecoder_Path: JsonDecoder[Path]
given given_JsonEncoder_Path: JsonEncoder[Path]