refactor: use helper go functions to handle extracting files from a repository

This standardizes the extraction code and makes it easier to reuse in future implementations of file extraction.

Additionally, this adds a way to extract folders from codebases.
This commit is contained in:
Jose Diaz-Gonzalez
2025-07-23 17:55:45 -04:00
parent 3116880b75
commit 577f46153f
7 changed files with 483 additions and 198 deletions

View File

@@ -34,6 +34,12 @@ func main() {
ProjectName: projectName,
ComposeFile: composeFile,
})
case "copy-dir-from-image":
appName := flag.Arg(1)
image := flag.Arg(2)
source := flag.Arg(3)
destination := flag.Arg(4)
err = common.CopyDirFromImage(appName, image, source, destination)
case "copy-from-image":
appName := flag.Arg(1)
image := flag.Arg(2)