summaryrefslogtreecommitdiff
path: root/sampleConfig.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-11-27 21:05:12 -0600
committerJeff Carr <[email protected]>2024-11-27 21:05:12 -0600
commit0fc7c2d753bc6cfdc4d64425da1a23c3735b8409 (patch)
treea4b7e9f54c46a2c539892cd67cb512171cfd0054 /sampleConfig.go
parent5d031310474e67e211449c434489ec537cabc51f (diff)
boo. big mistake on naming protobufs
It's important to really choose good names from the start. do not think you can rename .proto files later Good software engineering practices enforced here! no bullshit. you really want to know what you are planning.
Diffstat (limited to 'sampleConfig.go')
-rw-r--r--sampleConfig.go14
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")
}