Skip to content

Commit

Permalink
Fix parsetarget
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelvigee committed Nov 18, 2023
1 parent 50e9dda commit cbb7a2a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion cmd/heph/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -744,7 +744,13 @@ var parseTargetCmd = &cobra.Command{

enc := json.NewEncoder(os.Stdout)
enc.SetIndent("", " ")
err = enc.Encode(tp)
err = enc.Encode(struct {
Package string
Name string
}{
Package: tp.Package,
Name: tp.Name,
})
if err != nil {
return err
}
Expand Down

0 comments on commit cbb7a2a

Please sign in to comment.