From dbd78e4ea695f043d655d2e1652e6a6234c21d91 Mon Sep 17 00:00:00 2001 From: Hayleigh Thompson Date: Thu, 28 Nov 2024 22:20:01 +0100 Subject: [PATCH] :recycle: Remove version parsing from gleam.toml. --- src/lustre_dev_tools/project.gleam | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/lustre_dev_tools/project.gleam b/src/lustre_dev_tools/project.gleam index d04560e..b0cf5ce 100644 --- a/src/lustre_dev_tools/project.gleam +++ b/src/lustre_dev_tools/project.gleam @@ -18,7 +18,7 @@ import tom.{type Toml} // TYPES ----------------------------------------------------------------------- pub type Config { - Config(name: String, version: String, toml: Dict(String, Toml)) + Config(name: String, toml: Dict(String, Toml)) } pub type Interface { @@ -84,9 +84,8 @@ pub fn config() -> Result(Config, Error) { let assert Ok(configuration) = simplifile.read(configuration_path) let assert Ok(toml) = tom.parse(configuration) let assert Ok(name) = tom.get_string(toml, ["name"]) - let assert Ok(version) = tom.get_string(toml, ["version"]) - Ok(Config(name: name, version: version, toml: toml)) + Ok(Config(name: name, toml: toml)) } // UTILS -----------------------------------------------------------------------