diff options
Diffstat (limited to 'sampleConfig.go')
| -rw-r--r-- | sampleConfig.go | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sampleConfig.go b/sampleConfig.go index fc83f6f..52038ab 100644 --- a/sampleConfig.go +++ b/sampleConfig.go @@ -6,8 +6,8 @@ import ( "go.wit.com/log" ) -func (all *Repos) SampleConfig() { - new1 := new(Repo) +func (all *ForgeConfigs) SampleConfig() { + new1 := new(ForgeConfig) new1.GoPath = "go.wit.com" new1.Writable = true new1.Directory = true @@ -17,7 +17,7 @@ func (all *Repos) SampleConfig() { log.Info("added", new1.GoPath, "failed") } - new1 = new(Repo) + new1 = new(ForgeConfig) new1.GoPath = "go.wit.com/apps/zookeeper" new1.DebName = "zookeeper-go" if all.Append(new1) { @@ -26,7 +26,7 @@ func (all *Repos) SampleConfig() { log.Info("added", new1.GoPath, "failed") } - new1 = new(Repo) + new1 = new(ForgeConfig) new1.GoPath = "go.wit.com/apps/wit-package" new1.Private = true if all.Append(new1) { @@ -35,7 +35,7 @@ func (all *Repos) SampleConfig() { log.Info("added", new1.GoPath, "failed") } - new1 = new(Repo) + new1 = new(ForgeConfig) new1.GoPath = "go.wit.com/apps/networkQuality" new1.DebName = "networkquality" new1.ReadOnly = true @@ -45,7 +45,7 @@ func (all *Repos) SampleConfig() { log.Info("added", new1.GoPath, "failed") } - new2 := new(Repo) + new2 := new(ForgeConfig) new2.GoPath = "go.wit.com/apps/go-clone" if all.Append(new2) { log.Info("added", new2.GoPath, "ok") @@ -59,5 +59,5 @@ func (all *Repos) SampleConfig() { log.Info("added", new2.GoPath, "failed (but ok)") } - fmt.Println("first time user. adding an example config file with", len(all.Repos), "repos") + fmt.Println("first time user. adding an example config file with", len(all.ForgeConfigs), "repos") } |
