Skip to content

Commit 5a65791

Browse files
committed
Add Aknowledgements section to Readme, fix formatting
1 parent 01eb5ce commit 5a65791

File tree

2 files changed

+11
-18
lines changed

2 files changed

+11
-18
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
- [Storage Layout](#storage-layout)
3434
- [Template Variables](#template-variables)
3535
- [💡 Notes](#-notes)
36+
- [❤️ Aknowledgements](#️-aknowledgements)
3637
- [🤝 Contribute](#-contribute)
3738
- [License](#license)
3839

@@ -103,6 +104,13 @@ Yes, you can use spaces in the variable name! 😄
103104

104105
For questions, feedback, or contributions, don't hesitate to reach out!
105106

107+
## ❤️ Aknowledgements
108+
109+
| Contributor | Contribution |
110+
| ----------- | ------------ |
111+
| [@Arteiii](https://github.com/Arteiii) | 🪟 Windows installer [#5](https://github.com/an-dr/creator/pull/5) <br> ⚙️ Actions improvements [#5](https://github.com/an-dr/creator/pull/5)
112+
| [@zamazan4ik](https://github.com/zamazan4ik) | 💡 Optimization proposals [#9](https://github.com/an-dr/creator/issues/9) |
113+
106114
## 🤝 Contribute
107115

108116
For the application design and architecture see [docs/design.md](docs/design.md).

src/creator.rs

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,7 @@ impl Creator {
6969
// Replace the variables in the path
7070
let mut dest_path_str = dest_path.to_str().expect("The path should be valid").to_string();
7171
for (var_name, var_value) in &self.source_variable_values {
72-
let new_var_name = format!(
73-
"{}{}{}",
74-
Self::TEMPLATE_VAR_PREFIX,
75-
var_name,
76-
Self::TEMPLATE_VAR_SUFFIX
77-
);
72+
let new_var_name = format!("{}{}{}", Self::TEMPLATE_VAR_PREFIX, var_name, Self::TEMPLATE_VAR_SUFFIX);
7873
dest_path_str = dest_path_str.replace(&new_var_name, var_value);
7974
}
8075

@@ -93,12 +88,7 @@ impl Creator {
9388
// Replace the variables in the path
9489
let mut dest_path_str = dest_path.to_str().expect("The path should be valid").to_string();
9590
for (var_name, var_value) in &self.source_variable_values {
96-
let new_var_name = format!(
97-
"{}{}{}",
98-
Self::TEMPLATE_VAR_PREFIX,
99-
var_name,
100-
Self::TEMPLATE_VAR_SUFFIX
101-
);
91+
let new_var_name = format!("{}{}{}", Self::TEMPLATE_VAR_PREFIX, var_name, Self::TEMPLATE_VAR_SUFFIX);
10292
dest_path_str = dest_path_str.replace(&new_var_name, var_value);
10393
}
10494
debug!("Dest path: {:?}\n", dest_path_str);
@@ -110,12 +100,7 @@ impl Creator {
110100
let content = fs::read_to_string(&dest_path_str)?;
111101
let mut new_content = content.clone();
112102
for (var_name, var_value) in &self.source_variable_values {
113-
let var_name = format!(
114-
"{}{}{}",
115-
Self::TEMPLATE_VAR_PREFIX,
116-
var_name,
117-
Self::TEMPLATE_VAR_SUFFIX
118-
);
103+
let var_name = format!("{}{}{}", Self::TEMPLATE_VAR_PREFIX, var_name, Self::TEMPLATE_VAR_SUFFIX);
119104
new_content = new_content.replace(&var_name, var_value);
120105
}
121106
// Write the new content

0 commit comments

Comments
 (0)