diff options
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 18 |
1 files changed, 17 insertions, 1 deletions
@@ -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() } |
