diff --git a/CHANGELOG.md b/CHANGELOG.md index 4e4e017..7ccbbd1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,5 @@ # 1.3.1 -- [X] Improved speed: writing to file only once when using multiple blocks mode +- [X] Optimized `set` subcommand speed: writing to file only once when using multiple blocks mode # 1.3.0 - [X] Multiple themer blocks inside single file diff --git a/Cargo.lock b/Cargo.lock index 706f557..0115128 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -323,7 +323,7 @@ checksum = "b1141d4d61095b28419e22cb0bbf02755f5e54e0526f97f1e3d1d160e60885fb" [[package]] name = "themer" -version = "1.3.0" +version = "1.3.1" dependencies = [ "clap", "colored", diff --git a/src/updates.rs b/src/updates.rs index 96210a5..a1b30a9 100644 --- a/src/updates.rs +++ b/src/updates.rs @@ -28,7 +28,6 @@ pub fn run(theme_name: String, config: &Config) { for (_, conf) in &config.files { let update = update_gen.generate(&conf); - log::debug!("{update:#?}"); write_results(update, &conf); } } @@ -98,9 +97,6 @@ impl UpdatesGenerator { Ok(contents) } - // TODO 1: Create function that allows to pass TaggaedConfig and managas single string of contents instead of reading & writing every block - // TODO 2: Create a function for BlockConfig only - // TODO 3: Generate function should only accept BlockConfig, contents string and return updated string fn update_block( &mut self, contents: &mut String, @@ -112,7 +108,6 @@ impl UpdatesGenerator { let mut update = self.block_generator.generate(); // Replacing dollar sign to avoid Regex issues update = self.block_generator.wrap(&update).replace("$", "$$"); - log::debug!("{update}"); Ok(self .block_generator