This commit is contained in:
2025-02-19 09:46:41 +03:00
parent 24eb709293
commit ff45beac09
8 changed files with 25 additions and 29 deletions

View File

@@ -71,13 +71,12 @@ pub fn (repo GitRepo) get_relative_path() !string {
return mypath.path_relative(repo_.gs.coderoot.path) or { panic("couldn't get relative path") }
}
//path where we use ~ and its the full path
// path where we use ~ and its the full path
pub fn (repo GitRepo) get_human_path() !string {
mut mypath := repo.patho()!.path.replace(os.home_dir(),"~")
mut mypath := repo.patho()!.path.replace(os.home_dir(), '~')
return mypath
}
pub fn (mut repo GitRepo) get_parent_dir(args GetParentDir) !string {
repo_path := repo.path()
parent_dir := os.dir(repo_path)