From 5dfd3312ae724b0a0070b95367199ba1a6f25f07 Mon Sep 17 00:00:00 2001 From: Randall Winkhart Date: Sun, 12 Oct 2025 16:42:47 -0400 Subject: [PATCH] Announce current stage during all tweaks mode --- main.go | 8 ++++++++ removals.go | 1 - utilities.go | 7 +++++++ 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index 3bac52f..7bd2767 100644 --- a/main.go +++ b/main.go @@ -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 { diff --git a/removals.go b/removals.go index 55a9a1d..782f347 100644 --- a/removals.go +++ b/removals.go @@ -4,7 +4,6 @@ import ( "github.com/rwinkhart/go-boilerplate/front" ) -// TODO remove unneeded linux-firmware packages! func removals() { for { var choice int diff --git a/utilities.go b/utilities.go index a6eb33d..ac74911 100644 --- a/utilities.go +++ b/utilities.go @@ -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 + "...") + } +}