mirror of
https://github.com/ClementTsang/bottom
synced 2025-02-16 13:18:28 +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": {
|
"ProcColumn": {
|
||||||
|
"description": "A column in the process widget.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": [
|
||||||
"CPU%",
|
"CPU%",
|
||||||
|
|
|
@ -261,6 +261,7 @@ pub(crate) fn init_app(
|
||||||
if cfg.columns.is_empty() {
|
if cfg.columns.is_empty() {
|
||||||
None
|
None
|
||||||
} else {
|
} else {
|
||||||
|
// TODO: Should we be using an indexmap? Or maybe allow dupes.
|
||||||
Some(IndexSet::from_iter(
|
Some(IndexSet::from_iter(
|
||||||
cfg.columns.iter().map(ProcWidgetColumn::from),
|
cfg.columns.iter().map(ProcWidgetColumn::from),
|
||||||
))
|
))
|
||||||
|
|
|
@ -8,6 +8,7 @@ use crate::{
|
||||||
utils::general::sort_partial_fn,
|
utils::general::sort_partial_fn,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/// A column in the process widget.
|
||||||
#[derive(Debug, PartialEq, Eq, Copy, Clone, Hash)]
|
#[derive(Debug, PartialEq, Eq, Copy, Clone, Hash)]
|
||||||
#[cfg_attr(
|
#[cfg_attr(
|
||||||
feature = "generate_schema",
|
feature = "generate_schema",
|
||||||
|
|
Loading…
Add table
Reference in a new issue