This commit is contained in:
Jeff Carr 2025-09-11 20:54:42 -05:00
parent 40db2d84ef
commit 101e9bd0d2
1 changed files with 2 additions and 16 deletions

View File

@ -4,32 +4,17 @@ package main
// data to and from config files // data to and from config files
import ( import (
"errors"
"fmt" "fmt"
"os"
"strings"
"go.wit.com/lib/config"
"go.wit.com/lib/protobuf/forgepb" "go.wit.com/lib/protobuf/forgepb"
"go.wit.com/log"
) )
func forgeConfigSave() error { func forgeConfigSave() error {
return me.forge.Config.ConfigSave() return me.forge.Config.ConfigSave()
} }
func configInit() (*forgepb.ForgeConfigs, error) {
/* /*
// the default forged dir is /home/forge func configInit() (*forgepb.ForgeConfigs, error) {
if os.Getenv("FORGE_GOSRC") == "" {
os.Setenv("FORGE_GOSRC", "/home/forge")
}
if os.Getenv("FORGE_PATCHDIR") == "" {
os.Setenv("FORGE_PATCHDIR", "/var/lib/forged")
}
*/
me.urlbase = argv.URL me.urlbase = argv.URL
if me.urlbase == "" { if me.urlbase == "" {
me.urlbase = "https://go.wit.com/" me.urlbase = "https://go.wit.com/"
@ -57,6 +42,7 @@ func configInit() (*forgepb.ForgeConfigs, error) {
} }
return configs, err return configs, err
} }
*/
func sampleConfig(all *forgepb.ForgeConfigs) { func sampleConfig(all *forgepb.ForgeConfigs) {
new1 := new(forgepb.ForgeConfig) new1 := new(forgepb.ForgeConfig)