GitRepository

gitinsp.domain.models.GitRepository
See theGitRepository companion class
object GitRepository extends LazyLogging

Utility object for GitRepository operations

Attributes

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

Members list

Type members

Inherited and Abstract 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 detectLanguage(language: String): Option[List[Language]]

Trims the part after the last dash in a string For example: "repo1-text" becomes "repo1"

Trims the part after the last dash in a string For example: "repo1-text" becomes "repo1"

Attributes

def detectLanguageFromFile(filePath: String): Option[Language]

Detects a language from a file path by its extension

Detects a language from a file path by its extension

Value parameters

filePath

Path to the file

Attributes

Returns

Some(Language) if detected, None otherwise

def detectLanguages(languages: String): List[Language]

Detects multiple languages from a comma-separated string

Detects multiple languages from a comma-separated string

Value parameters

languages

Comma-separated list of language identifiers

Attributes

Returns

List of detected Language enum values

def from(qdrantCollections: List[QdrantURL]): List[RepositoryWithCategories]

Creates a list of repositories with categories from a list of QdrantURLs

Creates a list of repositories with categories from a list of QdrantURLs

Value parameters

qdrantCollections

List of QdrantURLs to process

Attributes

Returns

List of RepositoryWithCategories

Inherited fields

lazy protected val logger: Logger

Attributes

Inherited from:
LazyLogging