diff options
Diffstat (limited to 'config.go')
| -rw-r--r-- | config.go | 21 |
1 files changed, 1 insertions, 20 deletions
@@ -92,25 +92,6 @@ func (cfg *ForgeConfigs) ConfigSave() error { return config.ConfigSaveWithHeader(cfg, header) } -func (f *Forge) DumpENV() { - if f.Repos == nil { - log.Infof("forge ReposPB = <nil>\n") - } else { - log.Infof("forge ReposPB = %s\n", f.Repos.Filename) - } - if f.Patches == nil { - log.Infof("forge PatchPB = <nil>\n") - } else { - log.Infof("forge PatchPB = %s\n", f.Patches.Filename) - } - DumpENV() -} - -func DumpENV() { - log.Infof("forge ReposDir = %s\n", ENV.Get("ReposDir")) - log.Infof("forge ForgeURL = %s\n", ENV.Get("ForgeURL")) -} - func loadStdConfig() (*ForgeConfigs, error) { cfg := NewForgeConfigs() err := cfg.loadConfig() @@ -138,7 +119,7 @@ func makeDefaultConfig() (*ForgeConfigs, error) { cfg.loadConfig() cfg.addSampleConfigs() - DumpENV() + ENV.PrintTable() var err error if err = cfg.SaveVerbose(); err != nil { log.Info("config save error:", err) |
