windowss architecture is shitty

This commit is contained in:
2026-09-27 16:30:02 +02:00
parent 0ee10a64c1
commit 1cb2296480
3 changed files with 111 additions and 106 deletions
+9
View File
@@ -47,8 +47,17 @@ func main() {
Repo: envOrDefault("GITEA_REPO", defaultRepo),
}
if err := platformEnsureElevated(); err != nil {
printError(err)
os.Exit(1)
}
args := os.Args[1:]
if len(args) > 0 && args[0] == "--elevated" {
args = args[1:]
}
if len(args) == 0 {
runTUI(config)
return