Add 'keep' flag

This commit is contained in:
2025-10-17 21:11:16 +03:00
parent b9d7dfd9d0
commit c4a0e9f860
+4
View File
@@ -20,6 +20,7 @@ import (
var compile = flag.BoolP("compile", "c", false, "Compile BPM source package") var compile = flag.BoolP("compile", "c", false, "Compile BPM source package")
var skipCheck = flag.BoolP("skip-checks", "s", false, "Skip 'check' function while compiling") var skipCheck = flag.BoolP("skip-checks", "s", false, "Skip 'check' function while compiling")
var keepCompilationFiles = flag.BoolP("keep", "k", false, "Keep compilation files after successful package compilation")
var installDepends = flag.BoolP("depends", "d", false, "Install package dependencies for compilation") var installDepends = flag.BoolP("depends", "d", false, "Install package dependencies for compilation")
var installPackage = flag.BoolP("install", "i", false, "Install compiled BPM package after compilation finishes") var installPackage = flag.BoolP("install", "i", false, "Install compiled BPM package after compilation finishes")
var moveToBinaryDir = flag.BoolP("move", "m", false, "Move output packages to the current repository's binary directory") var moveToBinaryDir = flag.BoolP("move", "m", false, "Move output packages to the current repository's binary directory")
@@ -163,6 +164,9 @@ func compilePackage(archive string) {
if *skipCheck { if *skipCheck {
args = append(args, "-s") args = append(args, "-s")
} }
if *keepCompilationFiles {
args = append(args, "-k")
}
if *installDepends { if *installDepends {
args = append(args, "-d") args = append(args, "-d")
} }