Skip to content

Commit 4885002

Browse files
committed
feat: bind GraphService to Wails frontend
Add GraphService to the Wails Bind array so GetRelated, GetRelationshipChain, and GetDependencyTree are callable from the frontend via generated TypeScript bindings.
1 parent 56ae2ab commit 4885002

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

main.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ func main() {
120120
// Setup the plugin systems
121121
resourceController := resource.NewController(log, settingsProvider)
122122
resourceClient := resource.NewClient(resourceController)
123+
graphService := resource.NewGraphService(resourceController.Graph())
123124

124125
settingsController := settings.NewController(log, settingsProvider)
125126
settingsClient := settings.NewClient(settingsController)
@@ -340,6 +341,7 @@ func main() {
340341
pluginLogManager,
341342
devServerManager,
342343
resourceClient,
344+
graphService,
343345
settingsClient,
344346
execClient,
345347
networkerClient,

0 commit comments

Comments
 (0)