duck-template 0.1.6

A cli tool for generating files from a template just with a json file
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#[cfg(test)]
mod tests {
  use crate::logger::{LogLevel, log};

  #[test]
  fn test_log_levels() {
    log(LogLevel::Error, "This is an error");
    log(LogLevel::Warning, "This is a warning");
    log(LogLevel::Success, "This is a success");
    log(LogLevel::Info, "This is an info");

    // Note: This test doesn't assert anything.
    // It's just for visual inspection of colored output.
    // To test printed output properly, you'd need to capture stdout.
  }
}