initial commit
diff --git a/main.go b/main.go
new file mode 100644
index 0000000..0314b7d
--- /dev/null
+++ b/main.go
@@ -0,0 +1,33 @@
+package main
+
+import (
+ "flag"
+ "io/ioutil"
+
+ "github.com/golang/glog"
+ "github.com/golang/protobuf/proto"
+
+ confpb "code.hackerspace.pl/q3k/topo/proto/config"
+)
+
+var (
+ flagConfigPath string
+)
+
+func init() {
+ flag.Set("logtostderr", "true")
+}
+
+func main() {
+ flag.StringVar(&flagConfigPath, "config_path", "./topo.pb.text", "Text proto configuration of Topo (per config.proto)")
+ flag.Parse()
+
+ data, err := ioutil.ReadFile(flagConfigPath)
+ if err != nil {
+ glog.Exitf("Could not read config: %v", err)
+ }
+
+ config := confpb.Config{}
+ proto.UnmarshalText(string(data), &config)
+ glog.Infof("%+v", config)
+}