Skip to content

Commit

Permalink
use manifest path for inclusion of template
Browse files Browse the repository at this point in the history
  • Loading branch information
MabezDev committed Feb 24, 2025
1 parent 25d3d23 commit 5a44fa0
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,9 @@ mod check;
mod template_files;
mod tui;

static TEMPLATE: LazyLock<Template> = LazyLock::new(|| {
let options = include_str!("../template/template.yaml");
serde_yaml::from_str(options).unwrap()
});
const OPTIONS: &str = concat!(env!("CARGO_MANIFEST_DIR"), "/template/template.toml");

static TEMPLATE: LazyLock<Template> = LazyLock::new(|| serde_yaml::from_str(OPTIONS).unwrap());

#[derive(Parser, Debug)]
#[command(author, version, about, long_about = None)]
Expand Down

0 comments on commit 5a44fa0

Please sign in to comment.