fix: switch default profile to terminal and fixed some comments
This commit is contained in:
1 parent
971375bf1f
commit
52787b57c7
71 files changed
+671
-188
No files matched your search
@@ -1,3 +1,5 @@
|
||||
// plain-text table rendering for CLI output. no fancy box-drawing,
|
||||
// just left-aligned columns with two-space gaps. keeps it pipeable.
|
||||
use chrono::{DateTime, Utc};
|
||||
|
||||
pub fn print_table(headers: &[&str], rows: &[Vec<String>]) {
|
||||
@@ -39,6 +41,7 @@ pub fn active_marker(active: bool) -> &'static str {
|
||||
}
|
||||
}
|
||||
|
||||
// find the widest value in each column to pad everything evenly
|
||||
fn column_widths(headers: &[&str], rows: &[Vec<String>]) -> Vec<usize> {
|
||||
let mut widths: Vec<usize> = headers.iter().map(|header| header.len()).collect();
|
||||
|
||||
|
||||
Reference in new issue
Block a user