In package com.eden.orchid.api.util

class com.eden.orchid.api.util.CliGitRepoFacade

Fields

repoDir: Path

Constructors

constructor(repoDir: Path, remoteUrl: String, displayedRemoteUrl: String, remoteBranch: String, verbose: Boolean)
Parameters:
  • repoDir: Path
  • remoteUrl: String
  • displayedRemoteUrl: String
  • remoteBranch: String
  • verbose: Boolean

Methods

fun initRepo(): GitRepoFacade
Parameters:
  • No parameters
fun cloneRepo(): GitRepoFacade
Parameters:
  • No parameters
fun commit(commitUsername: String, commitEmail: String, commitMessage: String): GitRepoFacade
Parameters:
  • commitUsername: String
  • commitEmail: String
  • commitMessage: String
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