mirror of
https://github.com/holos-run/holos.git
synced 2026-03-22 02:05:00 +00:00
Previously the show buildplans, render platform, and render component commands used duplicate code paths to obtain build plans and render components. This patch consolidates the behaviors into the component and platform packages. The platform Build method is used to call a different PerComponentFunc depending on the use case of showing build plans or rendering each component in the platform. The behavior of loading a build plan from cue is consolidated into the Component.BuildPlan method. Result: 1. Platform.Build is reused for both show buildplans and render platform 2. Component.BuildPlan is reused for both show buildplans and render component.