Fit skeleton

This commit is contained in:
Ian Gulliver
2021-11-27 06:27:00 +00:00
parent 77a2fed2e0
commit 76cc93ab22
3 changed files with 56 additions and 24 deletions

10
grow/fit/config.go Normal file
View 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
View 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")
}
}