pull in machine
This commit is contained in:
parent
a89dc7f976
commit
c10d3410a2
6
init.go
6
init.go
|
@ -4,6 +4,7 @@ import (
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
"go.wit.com/lib/protobuf/gitpb"
|
"go.wit.com/lib/protobuf/gitpb"
|
||||||
|
"go.wit.com/lib/protobuf/zoopb"
|
||||||
"go.wit.com/log"
|
"go.wit.com/log"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -31,9 +32,8 @@ func Init() *Forge {
|
||||||
os.Exit(-1)
|
os.Exit(-1)
|
||||||
}
|
}
|
||||||
|
|
||||||
if f.Repos == nil {
|
f.Repos = new(gitpb.Repos)
|
||||||
f.Repos = new(gitpb.Repos)
|
f.Machine = new(zoopb.Machine)
|
||||||
}
|
|
||||||
|
|
||||||
f.goSrc = os.Getenv("FORGE_GOSRC")
|
f.goSrc = os.Getenv("FORGE_GOSRC")
|
||||||
f.ScanGoSrc()
|
f.ScanGoSrc()
|
||||||
|
|
12
structs.go
12
structs.go
|
@ -1,12 +1,16 @@
|
||||||
package forgepb
|
package forgepb
|
||||||
|
|
||||||
import "go.wit.com/lib/protobuf/gitpb"
|
import (
|
||||||
|
"go.wit.com/lib/protobuf/gitpb"
|
||||||
|
"go.wit.com/lib/protobuf/zoopb"
|
||||||
|
)
|
||||||
|
|
||||||
// maybe an interface someday?
|
// maybe an interface someday?
|
||||||
type Forge struct {
|
type Forge struct {
|
||||||
goSrc string // the path to go/src
|
goSrc string // the path to go/src
|
||||||
Config *ForgeConfigs // config repos for readonly, private, etc
|
Config *ForgeConfigs // config repos for readonly, private, etc
|
||||||
Repos *gitpb.Repos
|
Repos *gitpb.Repos
|
||||||
|
Machine *zoopb.Machine
|
||||||
}
|
}
|
||||||
|
|
||||||
func (f *Forge) GetGoSrc() string {
|
func (f *Forge) GetGoSrc() string {
|
||||||
|
|
Loading…
Reference in New Issue