mirror of
https://git.proxmox.com/git/proxmox
synced 2025-06-02 22:40:54 +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
|
||||
}
|
||||
|
||||
/// Add a single column configuration
|
||||
pub fn column(mut self, column_config: ColumnConfig) -> Self {
|
||||
self.column_config.push(column_config);
|
||||
self
|
||||
}
|
||||
}
|
||||
|
||||
struct TableCell {
|
||||
|
Loading…
Reference in New Issue
Block a user