diff options
Diffstat (limited to 'forgeConfig.config.go')
| -rw-r--r-- | forgeConfig.config.go | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/forgeConfig.config.go b/forgeConfig.config.go deleted file mode 100644 index b5080a6..0000000 --- a/forgeConfig.config.go +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright 2025 WIT.COM Inc Licensed GPL 3.0 - -package forgepb - -import ( - "os" - - "go.wit.com/lib/config" - "go.wit.com/log" -) - -// functions to import and export the protobuf -// data to and from config files - -// write to ~/.config/forge/ -func (cfg *ForgeConfigs) ConfigSave() error { - var header string - header += "\n" - header += "# the forge config file\n" - header += "# You can customize things like:\n" - header += "#\n" - header += "# * which repos you have write access to\n" - header += "# * custom branch names for 'master', 'devel' and 'user'\n" - header += "# * 'favorites' so you can remember which things you like\n" - header += "#\n" - header += "\n" - return config.ConfigSaveWithHeader(cfg, header) -} - -func (cfg *ForgeConfigs) DumpENV() { - if cfg.ReposPB != os.Getenv("FORGE_REPOSPB") { - log.Infof("RepoPB file problem: cfg.ReposPB=%s != FORGE_REPOSPB=%s\n", cfg.ReposPB, os.Getenv("FORGE_REPOSPB")) - } -} - -// load the ~/.config/forge/ files -func (c *ForgeConfigs) ConfigLoad(fullpath string) error { - return nil -} - -/* - if f.Config.Username == "" { - usr, _ := user.Current() - f.Config.Username = usr.Username - f.SetConfigSave(true) - } - - if f.Config.Xterm == "" { - f.Config.Xterm = "xterm" - f.Config.XtermArgv = append(f.Config.XtermArgv, "-bg") - f.Config.XtermArgv = append(f.Config.XtermArgv, "black") - f.Config.XtermArgv = append(f.Config.XtermArgv, "-fg") - f.Config.XtermArgv = append(f.Config.XtermArgv, "white") - f.SetConfigSave(true) - } -*/ |
