22 lines
417 B
Go
22 lines
417 B
Go
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")
|
|
}
|