manager: Add os variable since hostname on macos is weird

This commit is contained in:
2024-11-04 17:07:50 +01:00
parent 9001a8f4bd
commit e0d95e3bd0
7 changed files with 318 additions and 212 deletions

View File

@ -9,7 +9,8 @@ use std::path::PathBuf;
use tokio::fs::{read_dir, read_to_string};
use tokio::join;
pub async fn peek_tree(cfg: &Config) -> Result<(), Errors> {
/// Iterate over the directory tree and print all variables used in all template files.
pub async fn print_variables(cfg: &Config) -> Result<(), Errors> {
for var in dir(cfg, PathBuf::new()).await? {
println!("{}", var);
}