diff --git a/crates/bws/src/render.rs b/crates/bws/src/render.rs index 4f2a32e9a..77f41f4bf 100644 --- a/crates/bws/src/render.rs +++ b/crates/bws/src/render.rs @@ -9,6 +9,7 @@ use serde::Serialize; pub(crate) enum Output { JSON, YAML, + Env, Table, TSV, None, @@ -49,6 +50,14 @@ pub(crate) fn serialize_response, const N: usiz let text = serde_yaml::to_string(&data).unwrap(); pretty_print("yaml", &text, color); } + Output::Env => { + let text: Vec = data + .get_values() + .into_iter() + .map(|row| format!("{}=\"{}\"", row[1], row[2])) + .collect(); + println!("{}", text.join("\n")); + } Output::Table => { let mut table = Table::new(); table