Skip to content

Commit

Permalink
use manifest path for inclusion of template (#133)
Browse files Browse the repository at this point in the history
  • Loading branch information
MabezDev authored Feb 24, 2025
1 parent 25d3d23 commit 73f578c
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 = include_str!(concat!(env!("CARGO_MANIFEST_DIR"), "/template/template.yaml"));

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 73f578c

Please sign in to comment.