Skip to content

Commit

Permalink
add asset type to the lineage output
Browse files Browse the repository at this point in the history
  • Loading branch information
karakanb committed May 22, 2024
1 parent c68c78d commit 9ba7e19
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/lineage.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,12 +107,14 @@ func (r *LineageCommand) printLineageJSON(asset *pipeline.Asset, upstream, downs

type jsonSummary struct {
AssetName string `json:"name"`
Type pipeline.AssetType `json:"type"`
Upstream []*dependencySummary `json:"upstream"`
Downstream []*dependencySummary `json:"downstream"`
}

summary := jsonSummary{
AssetName: asset.Name,
Type: asset.Type,
Upstream: make([]*dependencySummary, len(upstream)),
Downstream: make([]*dependencySummary, len(downstream)),
}
Expand Down

0 comments on commit 9ba7e19

Please sign in to comment.