feat(options): --boot now supports selecting by entry name or index, not just title

This commit is contained in:
2025-10-24 16:32:48 -07:00
parent d3f9e876fb
commit 911b617d92
5 changed files with 118 additions and 35 deletions

View File

@@ -1,5 +1,5 @@
use crate::context::SproutContext;
use crate::entries::EntryDeclaration;
use crate::entries::BootableEntry;
use crate::generators::bls::BlsConfiguration;
use crate::generators::matrix::MatrixConfiguration;
use anyhow::Result;
@@ -40,7 +40,7 @@ pub struct GeneratorDeclaration {
pub fn generate(
context: Rc<SproutContext>,
generator: &GeneratorDeclaration,
) -> Result<Vec<(Rc<SproutContext>, EntryDeclaration)>> {
) -> Result<Vec<BootableEntry>> {
if let Some(matrix) = &generator.matrix {
matrix::generate(context, matrix)
} else if let Some(bls) = &generator.bls {