mirror of
https://github.com/nushell/nushell
synced 2024-11-10 15:14:14 +00:00
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.
This commit is contained in:
parent
e2d0514bb5
commit
e68f744dda
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue