From e68f744dda0a13c496a5de0a52716709a630a402 Mon Sep 17 00:00:00 2001 From: NotTheDr01ds <32344964+NotTheDr01ds@users.noreply.github.com> Date: Thu, 25 Jul 2024 16:01:46 -0400 Subject: [PATCH] Update query-web example to use new chunks (#13429) # Description A `query web` example uses the (soon to be deprecated) `group` command. Updated it to use `chunks` replacement. --- crates/nu_plugin_query/src/query_web.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/nu_plugin_query/src/query_web.rs b/crates/nu_plugin_query/src/query_web.rs index 39f50e51af..2d8b9e4aac 100644 --- a/crates/nu_plugin_query/src/query_web.rs +++ b/crates/nu_plugin_query/src/query_web.rs @@ -81,7 +81,7 @@ pub fn web_examples() -> Vec> { result: None }, Example { - example: "http get https://www.nushell.sh | query web --query 'h2, h2 + p' | each {str join} | group 2 | each {rotate --ccw tagline description} | flatten", + example: "http get https://www.nushell.sh | query web --query 'h2, h2 + p' | each {str join} | chunks 2 | each {rotate --ccw tagline description} | flatten", description: "Pass multiple css selectors to extract several elements within single query, group the query results together and rotate them to create a table", result: None, },