package p.studio.compiler.messages;

public record BuilderPipelineConfig(
        boolean explain,
        String rootProjectPath,
        String vmProfile) {

    public BuilderPipelineConfig(
            final boolean explain,
            final String rootProjectPath) {
        this(explain, rootProjectPath, "core-v1");
    }

    public BuilderPipelineConfig {
        vmProfile = vmProfile == null || vmProfile.isBlank() ? "core-v1" : vmProfile;
    }
}
