Fit skeleton
This commit is contained in:
10
grow/fit/config.go
Normal file
10
grow/fit/config.go
Normal file
@@ -0,0 +1,10 @@
|
||||
package main
|
||||
|
||||
import "github.com/firestuff/subcoding/grow"
|
||||
import "github.com/firestuff/subcoding/vm"
|
||||
|
||||
type Config struct {
|
||||
Definition *grow.Definition `yaml:"definition"`
|
||||
|
||||
Programs map[string]*vm.Program `yaml:"programs"`
|
||||
}
|
||||
13
grow/fit/main.go
Normal file
13
grow/fit/main.go
Normal file
@@ -0,0 +1,13 @@
|
||||
package main
|
||||
|
||||
import "flag"
|
||||
import "log"
|
||||
|
||||
func main() {
|
||||
confPath := flag.String("conf-path", "", "path to config YAML file")
|
||||
flag.Parse()
|
||||
|
||||
if *confPath == "" {
|
||||
log.Fatal("Please specify --conf-path")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user