summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-15 14:04:01 -0500
committerJeff Carr <[email protected]>2025-10-15 14:04:01 -0500
commit135c5383ad41da752eaf4c56e832d8fcf9609e54 (patch)
tree0421b6ac4db2846743475983fada5125bcaf6bb0 /main.go
parentfec0e3a5636179fcd71fbf2e004e164c753c9725 (diff)
'new user' flow
Diffstat (limited to 'main.go')
-rw-r--r--main.go18
1 files changed, 17 insertions, 1 deletions
diff --git a/main.go b/main.go
index 274a550..c188dc5 100644
--- a/main.go
+++ b/main.go
@@ -42,13 +42,29 @@ func main() {
if !shell.Exists(me.forge.Config.ReposPB) {
// very likely new user
pfile, _ := resources.ReadFile("resources/NEWUSER")
- log.Info("NEW USER:", string(pfile))
+ log.Info("")
+ log.Info(string(pfile))
s := fmt.Sprintf("Initialize forge?")
if !fhelp.QuestionUser(s) {
me.sh.GoodExit("no? porque?")
}
+ if !fhelp.QuestionUser("forge will not look for git repos in ~/go/src") {
+ me.sh.GoodExit("no? porque?")
+ }
}
me.forge.ScanRepoDir() // looks for new dirs, checks existing repos for changes
+ if me.forge.Config.Mode == forgepb.ForgeMode_NEWUSER {
+ log.Info("")
+ log.Info(" A good thing to try as a new user is to rebuild forge.")
+ log.Info(" This will attempt to download all the sources & needed tools.")
+ log.Info("")
+ log.Info(" Also, you can enable bash & zsh completion with --bash & --zsh")
+ log.Info("")
+ log.Info(" todo: make better notes here.")
+ log.Info("")
+ me.sh.GoodExit("try: forge --forge-rebuild")
+ }
+
if me.forge.Config.Mode != forgepb.ForgeMode_NORMAL {
me.forge.Config.DumpPB()
}