@@ -19,19 +19,19 @@ import (
1919)
2020
2121type serializedComponent struct {
22- id string
23- name string
24- owner string
25- url string
22+ Id string
23+ Name string
24+ Owner string
25+ Url string
2626}
2727
2828type serializedInfrastructureResource struct {
29- id string
30- name string
31- owner string
32- aliases []string
33- schema string
34- providerType string
29+ Id string
30+ Name string
31+ Owner string
32+ Aliases []string
33+ Schema string
34+ ProviderType string
3535}
3636
3737// newToolResult creates a CallToolResult for the passed object handling any json marshaling errors
@@ -103,10 +103,10 @@ var rootCmd = &cobra.Command{
103103 var components []serializedComponent
104104 for _ , node := range resp .Nodes {
105105 components = append (components , serializedComponent {
106- id : string (node .Id ),
107- name : node .Name ,
108- owner : node .Owner .Alias ,
109- url : node .HtmlURL ,
106+ Id : string (node .Id ),
107+ Name : node .Name ,
108+ Owner : node .Owner .Alias ,
109+ Url : node .HtmlURL ,
110110 })
111111 }
112112 return newToolResult (components , nil )
@@ -123,12 +123,12 @@ var rootCmd = &cobra.Command{
123123 var infrastructureResources []serializedInfrastructureResource
124124 for _ , node := range resp .Nodes {
125125 infrastructureResources = append (infrastructureResources , serializedInfrastructureResource {
126- id : string (node .Id ),
127- name : node .Name ,
128- owner : node .Owner .Alias (),
129- aliases : node .Aliases ,
130- schema : node .Schema ,
131- providerType : node .ProviderType ,
126+ Id : string (node .Id ),
127+ Name : node .Name ,
128+ Owner : node .Owner .Alias (),
129+ Aliases : node .Aliases ,
130+ Schema : node .Schema ,
131+ ProviderType : node .ProviderType ,
132132 })
133133 }
134134 return newToolResult (infrastructureResources , nil )
0 commit comments