mirror of
https://github.com/ClementTsang/bottom.git
synced 2025-04-08 17:05:59 +02:00
other: add missing process column comment/schema description (#1623)
* add todo * rerun schema
This commit is contained in:
parent
6d37d5756f
commit
c8cba49463
@ -674,6 +674,7 @@
|
||||
}
|
||||
},
|
||||
"ProcColumn": {
|
||||
"description": "A column in the process widget.",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"CPU%",
|
||||
|
@ -261,6 +261,7 @@ pub(crate) fn init_app(
|
||||
if cfg.columns.is_empty() {
|
||||
None
|
||||
} else {
|
||||
// TODO: Should we be using an indexmap? Or maybe allow dupes.
|
||||
Some(IndexSet::from_iter(
|
||||
cfg.columns.iter().map(ProcWidgetColumn::from),
|
||||
))
|
||||
|
@ -8,6 +8,7 @@ use crate::{
|
||||
utils::general::sort_partial_fn,
|
||||
};
|
||||
|
||||
/// A column in the process widget.
|
||||
#[derive(Debug, PartialEq, Eq, Copy, Clone, Hash)]
|
||||
#[cfg_attr(
|
||||
feature = "generate_schema",
|
||||
|
Loading…
x
Reference in New Issue
Block a user