diff options
| author | Jeff Carr <[email protected]> | 2025-09-11 20:54:42 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-09-11 20:54:42 -0500 |
| commit | 101e9bd0d2a511f7960bb8264fcab2100b41a0f5 (patch) | |
| tree | 5b4e79ea47f8e4e032c496f6bbb823b477ea72e8 /config.go | |
| parent | 40db2d84eff31d91ae36e9bcedcd5114c59d9964 (diff) | |
minor
Diffstat (limited to 'config.go')
| -rw-r--r-- | config.go | 18 |
1 files changed, 2 insertions, 16 deletions
@@ -4,32 +4,17 @@ package main // data to and from config files import ( - "errors" "fmt" - "os" - "strings" - "go.wit.com/lib/config" "go.wit.com/lib/protobuf/forgepb" - "go.wit.com/log" ) func forgeConfigSave() error { return me.forge.Config.ConfigSave() } +/* func configInit() (*forgepb.ForgeConfigs, error) { - /* - // the default forged dir is /home/forge - 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 if me.urlbase == "" { me.urlbase = "https://go.wit.com/" @@ -57,6 +42,7 @@ func configInit() (*forgepb.ForgeConfigs, error) { } return configs, err } +*/ func sampleConfig(all *forgepb.ForgeConfigs) { new1 := new(forgepb.ForgeConfig) |
