Skip to content

Commit

Permalink
Added odra_modules_dependency to template engine.
Browse files Browse the repository at this point in the history
  • Loading branch information
kubaplas committed May 15, 2024
1 parent efce736 commit 25658bb
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/actions/init.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,13 +111,15 @@ impl InitAction {
"#odra_dependency",
"odra",
);

Self::replace_package_placeholder(
init,
&odra_location,
&cargo_toml_path,
"#odra_test_dependency",
"odra-test",
);

Self::replace_package_placeholder(
init,
&odra_location,
Expand All @@ -126,6 +128,14 @@ impl InitAction {
"odra-build",
);

Self::replace_package_placeholder(
init,
&odra_location,
&cargo_toml_path,
"#odra_modules_dependency",
"odra-modules",
);

rename_file(cargo_toml_path, "Cargo.toml");
log::info("Done!");
}
Expand Down

0 comments on commit 25658bb

Please sign in to comment.