2025-10-20 19:42:39 -07:00
|
|
|
/// The Sprout options parser.
|
|
|
|
|
pub mod parser;
|
2025-10-20 18:17:29 -07:00
|
|
|
|
|
|
|
|
/// Default configuration file path.
|
|
|
|
|
const DEFAULT_CONFIG_PATH: &str = "\\sprout.toml";
|
|
|
|
|
|
|
|
|
|
/// The parsed options of sprout.
|
|
|
|
|
#[derive(Debug)]
|
|
|
|
|
pub struct SproutOptions {
|
|
|
|
|
/// Path to a configuration file to load.
|
|
|
|
|
pub config: String,
|
|
|
|
|
/// Entry to boot without showing the boot menu.
|
|
|
|
|
pub boot: Option<String>,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// The default Sprout options.
|
|
|
|
|
impl Default for SproutOptions {
|
|
|
|
|
fn default() -> Self {
|
|
|
|
|
Self {
|
|
|
|
|
config: DEFAULT_CONFIG_PATH.to_string(),
|
|
|
|
|
boot: None,
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|