pgraph: Remove use of Flags struct in favour of Value API

One small step to completely cleaning up the pgraph package so that we
can eventually fix the code that would otherwise create a cycle!
This commit is contained in:
James Shubin
2017-05-13 12:04:49 -04:00
parent d11854f4e8
commit 70e7ee2d46
6 changed files with 51 additions and 27 deletions

View File

@@ -442,7 +442,7 @@ func (obj *Main) Run() error {
}
continue
}
newGraph.Flags = pgraph.Flags{Debug: obj.Flags.Debug}
newGraph.SetValue("debug", obj.Flags.Debug)
// pass in the information we need
newGraph.AssociateData(&resources.Data{
Hostname: hostname,