other: add missing process column comment/schema description (#1623)

* add todo

* rerun schema
This commit is contained in:
Clement Tsang 2024-11-14 05:34:05 -05:00 committed by GitHub
parent 6d37d5756f
commit c8cba49463
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 3 additions and 0 deletions

View file

@ -674,6 +674,7 @@
}
},
"ProcColumn": {
"description": "A column in the process widget.",
"type": "string",
"enum": [
"CPU%",

View file

@ -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),
))

View file

@ -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",