summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-15 14:25:42 -0500
committerJeff Carr <[email protected]>2025-10-15 14:25:42 -0500
commit3ac66c90f4c1151d1b65f1dbf06060b4c55603b0 (patch)
tree58dd2202ae1742c02e5f2a51619888dcc58d4b0e /main.go
parent135c5383ad41da752eaf4c56e832d8fcf9609e54 (diff)
try 4
Diffstat (limited to 'main.go')
-rw-r--r--main.go11
1 files changed, 9 insertions, 2 deletions
diff --git a/main.go b/main.go
index c188dc5..1c93050 100644
--- a/main.go
+++ b/main.go
@@ -45,10 +45,12 @@ func main() {
log.Info("")
log.Info(string(pfile))
s := fmt.Sprintf("Initialize forge?")
- if !fhelp.QuestionUser(s) {
+ if fhelp.QuestionUser(s) {
+ } else {
me.sh.GoodExit("no? porque?")
}
- if !fhelp.QuestionUser("forge will not look for git repos in ~/go/src") {
+ if fhelp.QuestionUser("forge will not look for git repos in ~/go/src") {
+ } else {
me.sh.GoodExit("no? porque?")
}
}
@@ -62,6 +64,11 @@ func main() {
log.Info("")
log.Info(" todo: make better notes here.")
log.Info("")
+ me.forge.Config.Mode = forgepb.ForgeMode_MASTER
+ err := me.forge.ConfigSave()
+ if err != nil {
+ log.Info("ConfigSave() failed", err)
+ }
me.sh.GoodExit("try: forge --forge-rebuild")
}