summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClement Tsang <34804052+ClementTsang@users.noreply.github.com>2024-11-14 05:34:05 -0500
committerGitHub <noreply@github.com>2024-11-14 10:34:05 +0000
commitc8cba4946328f44894a671a3029bd6e6904a2480 (patch)
treee25199ea5b57f56d337652560a91d6fa4548c56b
parent6d37d5756f15fc9ab2780e261affae8970df2c10 (diff)
other: add missing process column comment/schema description (#1623)nightlymain
* add todo * rerun schema
-rw-r--r--schema/nightly/bottom.json1
-rw-r--r--src/options.rs1
-rw-r--r--src/widgets/process_table/process_columns.rs1
3 files changed, 3 insertions, 0 deletions
diff --git a/schema/nightly/bottom.json b/schema/nightly/bottom.json
index efe6ce71..68e04f00 100644
--- a/schema/nightly/bottom.json
+++ b/schema/nightly/bottom.json
@@ -674,6 +674,7 @@
}
},
"ProcColumn": {
+ "description": "A column in the process widget.",
"type": "string",
"enum": [
"CPU%",
diff --git a/src/options.rs b/src/options.rs
index ed857acc..a0d3119b 100644
--- a/src/options.rs
+++ b/src/options.rs
@@ -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),
))
diff --git a/src/widgets/process_table/process_columns.rs b/src/widgets/process_table/process_columns.rs
index 55524b6e..d920ad1a 100644
--- a/src/widgets/process_table/process_columns.rs
+++ b/src/widgets/process_table/process_columns.rs
@@ -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",