everything tbh

This commit is contained in:
2024-08-29 22:02:19 +02:00
parent 2cdf7f38d1
commit 8d05683bd1
10 changed files with 168 additions and 141 deletions

View File

@@ -1,3 +1,4 @@
use colored::*;
use std::path::Path;
#[derive(serde::Deserialize, serde::Serialize, Clone)]
@@ -62,3 +63,14 @@ impl Default for Config {
}
}
}
pub struct PrintPrefix {
pub text: ColoredString,
pub padding: usize,
}
impl PrintPrefix {
pub fn formatted(&self) -> String {
format!("[{}]{:width$}", self.text, "", width = self.padding).to_string()
}
}