summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config.go18
1 files changed, 2 insertions, 16 deletions
diff --git a/config.go b/config.go
index 54e1088..d294286 100644
--- a/config.go
+++ b/config.go
@@ -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)