diff options
| author | Jeff Carr <[email protected]> | 2025-09-04 19:17:58 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-09-04 19:17:58 -0500 |
| commit | 8202a75eea8ebcca23d88a5754ace45b3f7f4027 (patch) | |
| tree | 0a4b5c1ec8c5391dc1bb81281e25647c34f35511 /init.go | |
| parent | 4cac4386f596b7b81d4c04ce54769c2e78fb4897 (diff) | |
cleaned up init.go more perfectly
Diffstat (limited to 'init.go')
| -rw-r--r-- | init.go | 18 |
1 files changed, 4 insertions, 14 deletions
@@ -96,6 +96,9 @@ func (f *Forge) InitPB() { f.hasFullScan = true } + // init the Patchsets + f.Patchsets = NewPatchsets() + // todo: play with these / determine good values based on user's machine f.rillX = 10 f.rillY = 20 @@ -139,20 +142,7 @@ func RawInitPB() *Forge { } func (f *Forge) RawInitPB() { - f.setenv() - - // load the ~/.config/forge/ config - f.Config = new(ForgeConfigs) - if err := f.Config.ConfigLoad(f.configDir); err != nil { - log.Log(WARN, "forgepb.ConfigLoad() failed", err) - } - - f.Repos = gitpb.NewRepos() - f.Repos.ConfigLoad() - - // todo: play with these / determine good values based on user's machine - f.rillX = 10 - f.rillY = 20 + f.InitPB() } // the first thing done is process any ENV settings |
