Skip to content

Commit

Permalink
fastn_core::FTDEdition::FTD2024
Browse files Browse the repository at this point in the history
  • Loading branch information
amitu committed Dec 4, 2024
1 parent eddd87e commit 7928b28
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fastn-core/src/config/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,15 @@ pub enum FTDEdition {
FTD2022,
#[default]
FTD2023,
FTD2024,
}

impl FTDEdition {
pub(crate) fn from_string(s: &str) -> fastn_core::Result<FTDEdition> {
match s {
"2022" => Ok(FTDEdition::FTD2022),
"2023" => Ok(FTDEdition::FTD2023),
"2024" => Ok(FTDEdition::FTD2024),
t => {
fastn_core::usage_error(format!("Unknown edition `{}`. Help use `2022` instead", t))
}
Expand Down
3 changes: 3 additions & 0 deletions fastn-core/src/package/package_doc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,9 @@ pub(crate) async fn read_ftd_(
)
.await
}
fastn_core::FTDEdition::FTD2024 => {
todo!()
}
}
}

Expand Down
1 change: 1 addition & 0 deletions v0.5/fastn-unresolved/src/parser/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ where
let (mut document, sections) = fastn_unresolved::Document::new(
module,
fastn_section::Document::parse(&arcstr::ArcStr::from(source)),
&mut arena,
);

let section = {
Expand Down

0 comments on commit 7928b28

Please sign in to comment.