diff options
| author | Jeff Carr <[email protected]> | 2025-10-15 14:04:13 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-15 14:04:13 -0500 |
| commit | fcd8b4cb38a30e38faa8c7a7941c73aa55698fb7 (patch) | |
| tree | 4bd81d5f82001b6a06abb4085cd37d84be2e24f7 | |
| parent | 6c958fb9c135c2e06322e0065bcdb8e4f5f4b0b2 (diff) | |
notes for new users
| -rw-r--r-- | init.go | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -76,15 +76,16 @@ func initFromConfig(cfg *ForgeConfigs) *Forge { } if !shell.Exists(f.Config.ReposPB) { - if f.Config.Mode == ForgeMode_NEWUSER { - // new user. drop back to main() for an introduction - return f - } // create an initial repos.pb file // panic() here? // warning? // (probably not. it's just the repos.pb cache file f.Repos = gitpb.NewRepos() f.Repos.Filename = f.Config.ReposPB f.Repos.Save() + + if f.Config.Mode == ForgeMode_NEWUSER { + // new user. drop back to main() for an introduction + return f + } } f.Repos = gitpb.NewRepos() |
