Skip to content

Commit

Permalink
add json tags to structured sysinfo command output
Browse files Browse the repository at this point in the history
Signed-off-by: Ethan Mosbaugh <[email protected]>
  • Loading branch information
emosbaugh committed Nov 26, 2024
1 parent c8f7089 commit df2649f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions cmd/sysinfo/sysinfo.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,12 +163,12 @@ func (r *cliReporter) printf(format interface{}, args ...interface{}) error {
}

type Probe struct {
Path []string
DisplayName string
Prop string
Message string
Category ProbeCategory
Error error
Path []string `json:"path"`
DisplayName string `json:"displayName"`
Prop string `json:"prop"`
Message string `json:"message"`
Category ProbeCategory `json:"category"`
Error error `json:"error"`
}

type ProbeCategory string
Expand Down

0 comments on commit df2649f

Please sign in to comment.