blob: 89e8ba860badf314939d351a03befdbf9c4eed87 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
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")
}
fmt.Println("first time user. adding an example config file with", len(all.ForgeConfigs), "repos")
}
|