mirror of
https://github.com/ClementTsang/bottom
synced 2024-11-21 19:53:05 +00:00
other: add missing process column comment/schema description (#1623)
* add todo * rerun schema
This commit is contained in:
parent
6d37d5756f
commit
c8cba49463
3 changed files with 3 additions and 0 deletions
|
@ -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…
Reference in a new issue