From d972937cca56565ed4b7f53f708530992f98646b Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sat, 30 Nov 2024 01:31:54 -0600 Subject: move Clone() here --- sampleConfig.go | 63 --------------------------------------------------------- 1 file changed, 63 deletions(-) delete mode 100644 sampleConfig.go (limited to 'sampleConfig.go') diff --git a/sampleConfig.go b/sampleConfig.go deleted file mode 100644 index 52038ab..0000000 --- a/sampleConfig.go +++ /dev/null @@ -1,63 +0,0 @@ -package forgepb - -import ( - "fmt" - - "go.wit.com/log" -) - -func (all *ForgeConfigs) SampleConfig() { - new1 := new(ForgeConfig) - new1.GoPath = "go.wit.com" - new1.Writable = true - new1.Directory = true - if all.Append(new1) { - log.Info("added", new1.GoPath, "ok") - } else { - log.Info("added", new1.GoPath, "failed") - } - - new1 = new(ForgeConfig) - new1.GoPath = "go.wit.com/apps/zookeeper" - new1.DebName = "zookeeper-go" - if all.Append(new1) { - log.Info("added", new1.GoPath, "ok") - } else { - log.Info("added", new1.GoPath, "failed") - } - - new1 = new(ForgeConfig) - new1.GoPath = "go.wit.com/apps/wit-package" - new1.Private = true - if all.Append(new1) { - log.Info("added", new1.GoPath, "ok") - } else { - log.Info("added", new1.GoPath, "failed") - } - - new1 = new(ForgeConfig) - new1.GoPath = "go.wit.com/apps/networkQuality" - new1.DebName = "networkquality" - new1.ReadOnly = true - if all.Append(new1) { - log.Info("added", new1.GoPath, "ok") - } else { - log.Info("added", new1.GoPath, "failed") - } - - new2 := new(ForgeConfig) - new2.GoPath = "go.wit.com/apps/go-clone" - if all.Append(new2) { - log.Info("added", new2.GoPath, "ok") - } else { - log.Info("added", new2.GoPath, "failed") - } - - if all.Append(new2) { - log.Info("added", new2.GoPath, "ok (this is bad)") - } else { - log.Info("added", new2.GoPath, "failed (but ok)") - } - - fmt.Println("first time user. adding an example config file with", len(all.ForgeConfigs), "repos") -} -- cgit v1.2.3