From e09e28e8d01b4ad79c23969cbdacf06067f2204a Mon Sep 17 00:00:00 2001 From: kjuulh Date: Sat, 3 Feb 2024 20:11:54 +0100 Subject: [PATCH] feat: reverse folders Signed-off-by: kjuulh --- cuddle/src/cli/subcommands/folder.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cuddle/src/cli/subcommands/folder.rs b/cuddle/src/cli/subcommands/folder.rs index 7cf080c..c13a6d1 100644 --- a/cuddle/src/cli/subcommands/folder.rs +++ b/cuddle/src/cli/subcommands/folder.rs @@ -77,7 +77,7 @@ impl FolderCommand { // Prepare context let mut context = tera::Context::new(); - for var in &self.variables { + for var in self.variables.iter().rev() { context.insert(var.name.to_lowercase().replace([' ', '-'], "_"), &var.value) }