Announce current stage during all tweaks mode

This commit is contained in:
2025-10-12 16:42:47 -04:00
parent c62731ced3
commit 5dfd3312ae
3 changed files with 15 additions and 1 deletions
+8
View File
@@ -43,6 +43,7 @@ func main() {
fmt.Println("\n" + partitionR + " is already mounted on " + mountPoint)
os.Exit(1)
} else {
allTweaksAnnounce("pre-mount tweaks")
premount()
}
@@ -51,6 +52,7 @@ func main() {
}
fallthrough
case 3:
allTweaksAnnounce("universal tweaks")
mountPartition()
universalTweaks()
@@ -59,6 +61,7 @@ func main() {
}
fallthrough
case 4:
allTweaksAnnounce("system tweaks")
mountPartition()
system()
@@ -67,6 +70,7 @@ func main() {
}
fallthrough
case 5:
allTweaksAnnounce("removals")
mountPartition()
removals()
@@ -75,6 +79,7 @@ func main() {
}
fallthrough
case 6:
allTweaksAnnounce("application installs")
mountPartition()
applications()
@@ -83,6 +88,7 @@ func main() {
}
fallthrough
case 7:
allTweaksAnnounce("configurations")
mountPartition()
configurations()
@@ -91,6 +97,7 @@ func main() {
}
fallthrough
case 8:
allTweaksAnnounce("cosmic tweaks")
mountPartition()
cosmic()
// TODO window decoration position (not yet implemented)
@@ -101,6 +108,7 @@ func main() {
}
fallthrough
case 9:
allTweaksAnnounce("firmware selection")
firmwareSelector()
}
if !performAllTweaks {
-1
View File
@@ -4,7 +4,6 @@ import (
"github.com/rwinkhart/go-boilerplate/front"
)
// TODO remove unneeded linux-firmware packages!
func removals() {
for {
var choice int
+7
View File
@@ -1,6 +1,7 @@
package main
import (
"fmt"
"os"
"os/exec"
"strings"
@@ -101,3 +102,9 @@ func mkdir(path string) {
other.PrintError("Failed to set ownership of \""+path+"\"", 1)
}
}
func allTweaksAnnounce(stage string) {
if performAllTweaks {
fmt.Println("Performing " + stage + "...")
}
}