a73x

internal/shape/generate.go

Ref:   Size: 281 B   History

package shape

// Generate runs the real `go list`, builds the model, and returns its JSON
// rendering. It is the one entry point cmd/eitri-shape calls.
func Generate() ([]byte, error) {
	raw, err := goList()
	if err != nil {
		return nil, err
	}
	return RenderJSON(Build(raw))
}