Skip to content

Commit

Permalink
fix rpc menu gen iteration bug
Browse files Browse the repository at this point in the history
  • Loading branch information
jcodybaker committed Feb 19, 2024
1 parent 6e2d076 commit 08d8bb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ func init() {
Title: "Device Component RPCs:",
})
for _, c := range components {

c := c
rootCmd.AddCommand(c.Parent)
c.Parent.Run = func(cmd *cobra.Command, args []string) {
c.Parent.Help()
Expand Down

0 comments on commit 08d8bb0

Please sign in to comment.