In package com.eden.orchid.api.util

class com.eden.orchid.api.util.GitRepoFacade

Fields

abstract repoDir: Path

Methods

abstract fun initRepo(): GitRepoFacade
Parameters:
  • No parameters
abstract fun cloneRepo(): GitRepoFacade
Parameters:
  • No parameters
abstract fun commit(commitUsername: String, commitEmail: String, commitMessage: String): GitRepoFacade
Parameters:
  • commitUsername: String
  • commitEmail: String
  • commitMessage: String
abstract fun push(force: Boolean): GitRepoFacade
Parameters:
  • force: Boolean

Extensions

fun GitRepoFacade.makeSubDir(subfolder: String): Path
Parameters:
  • subfolder: String
fun GitRepoFacade.copy(subdirectory: Path?, from: String)
Parameters:
  • subdirectory: Path?
  • from: String
fun GitRepoFacade.delete(subdirectory: Path?)
Parameters:
  • subdirectory: Path?
fun GitRepoFacade.addFile(filename: String, content: String)
Parameters:
  • filename: String
  • content: String