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) fmt.Println("\n" + partitionR + " is already mounted on " + mountPoint)
os.Exit(1) os.Exit(1)
} else { } else {
allTweaksAnnounce("pre-mount tweaks")
premount() premount()
} }
@@ -51,6 +52,7 @@ func main() {
} }
fallthrough fallthrough
case 3: case 3:
allTweaksAnnounce("universal tweaks")
mountPartition() mountPartition()
universalTweaks() universalTweaks()
@@ -59,6 +61,7 @@ func main() {
} }
fallthrough fallthrough
case 4: case 4:
allTweaksAnnounce("system tweaks")
mountPartition() mountPartition()
system() system()
@@ -67,6 +70,7 @@ func main() {
} }
fallthrough fallthrough
case 5: case 5:
allTweaksAnnounce("removals")
mountPartition() mountPartition()
removals() removals()
@@ -75,6 +79,7 @@ func main() {
} }
fallthrough fallthrough
case 6: case 6:
allTweaksAnnounce("application installs")
mountPartition() mountPartition()
applications() applications()
@@ -83,6 +88,7 @@ func main() {
} }
fallthrough fallthrough
case 7: case 7:
allTweaksAnnounce("configurations")
mountPartition() mountPartition()
configurations() configurations()
@@ -91,6 +97,7 @@ func main() {
} }
fallthrough fallthrough
case 8: case 8:
allTweaksAnnounce("cosmic tweaks")
mountPartition() mountPartition()
cosmic() cosmic()
// TODO window decoration position (not yet implemented) // TODO window decoration position (not yet implemented)
@@ -101,6 +108,7 @@ func main() {
} }
fallthrough fallthrough
case 9: case 9:
allTweaksAnnounce("firmware selection")
firmwareSelector() firmwareSelector()
} }
if !performAllTweaks { if !performAllTweaks {
-1
View File
@@ -4,7 +4,6 @@ import (
"github.com/rwinkhart/go-boilerplate/front" "github.com/rwinkhart/go-boilerplate/front"
) )
// TODO remove unneeded linux-firmware packages!
func removals() { func removals() {
for { for {
var choice int var choice int
+7
View File
@@ -1,6 +1,7 @@
package main package main
import ( import (
"fmt"
"os" "os"
"os/exec" "os/exec"
"strings" "strings"
@@ -101,3 +102,9 @@ func mkdir(path string) {
other.PrintError("Failed to set ownership of \""+path+"\"", 1) other.PrintError("Failed to set ownership of \""+path+"\"", 1)
} }
} }
func allTweaksAnnounce(stage string) {
if performAllTweaks {
fmt.Println("Performing " + stage + "...")
}
}