commit b3f208ac04b3964747bb6430cf720327e3d9f712 from: murilo ijanc date: Wed Nov 26 21:07:28 2025 UTC Order by name commit - 03525deb6aec79415e15515a69ec0160c6cab004 commit + b3f208ac04b3964747bb6430cf720327e3d9f712 blob - 637e7571ecfba7dc02c55b18d37332ac29bf9cbf blob + f6839467a2ffed8caef19be09290661776f05464 --- crates/kops_protocol/src/lib.rs +++ crates/kops_protocol/src/lib.rs @@ -65,7 +65,7 @@ pub struct EnvRequest { pub filter_regex: Option, } -#[derive(Debug, Decode, Encode)] +#[derive(Debug, Decode, Encode, Ord, Eq, PartialOrd, PartialEq)] pub struct EnvEntry { pub name: String, pub value: Option, blob - d1b0196ea784dd57358f28ead891ffe9a5e71110 blob + 436ffe83782d69bdbf298adcc528d66653cdd43a --- kopsctl/src/cmd/env.rs +++ kopsctl/src/cmd/env.rs @@ -37,11 +37,13 @@ pub async fn execute( match resp { Response::Pods { pods } => { - let items: Vec = pods + let mut items: Vec = pods .iter() .map(|p| format!("{} / {}", p.namespace, p.name)) .collect(); + items.sort(); + let selection = FuzzySelect::new() .with_prompt("Select pod") .items(&items)