Update query-web example to use new chunks

This commit is contained in:
NotTheDr01ds 2024-07-23 12:20:10 -04:00
parent 366e52b76d
commit 6b308f2d15

View File

@ -81,7 +81,7 @@ pub fn web_examples() -> Vec<Example<'static>> {
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,
},