mirror of
https://git.proxmox.com/git/proxmox
synced 2025-06-04 14:58:30 +00:00
src/api/cli/text_table.rs - TableFormatOptions: allow to add single column configs
This commit is contained in:
parent
f7019c4231
commit
9976f04357
@ -245,6 +245,12 @@ impl TableFormatOptions {
|
|||||||
self.column_config = column_config;
|
self.column_config = column_config;
|
||||||
self
|
self
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Add a single column configuration
|
||||||
|
pub fn column(mut self, column_config: ColumnConfig) -> Self {
|
||||||
|
self.column_config.push(column_config);
|
||||||
|
self
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
struct TableCell {
|
struct TableCell {
|
||||||
|
Loading…
Reference in New Issue
Block a user