Skip to content

Commit

Permalink
other: add missing process column comment/schema description (#1623)
Browse files Browse the repository at this point in the history
* add todo

* rerun schema
  • Loading branch information
ClementTsang authored Nov 14, 2024
1 parent 6d37d57 commit c8cba49
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions schema/nightly/bottom.json
Original file line number Diff line number Diff line change
Expand Up @@ -674,6 +674,7 @@
}
},
"ProcColumn": {
"description": "A column in the process widget.",
"type": "string",
"enum": [
"CPU%",
Expand Down
1 change: 1 addition & 0 deletions src/options.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
))
Expand Down
1 change: 1 addition & 0 deletions src/widgets/process_table/process_columns.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit c8cba49

Please sign in to comment.