mirror of
https://github.com/alterware/alterware-launcher.git
synced 2025-12-06 00:07:48 +00:00
everything tbh
This commit is contained in:
@@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user