mirror of
https://github.com/nushell/nushell
synced 2024-12-27 05:23:11 +00:00
Update query web example since wikipedia keeps changing (#13421)
# Description Every so ofter wikipedia changes the column names which breaks the query example. It would be good to make query web's table extraction to be smart enough to find tables that are close. This PR fixes the example. # User-Facing Changes <!-- List of all changes that impact the user experience here. This helps us keep track of breaking changes. --> # Tests + Formatting <!-- Don't forget to add tests that cover your changes. Make sure you've run and fixed any issues with these commands: - `cargo fmt --all -- --check` to check standard code formatting (`cargo fmt --all` applies these changes) - `cargo clippy --workspace -- -D warnings -D clippy::unwrap_used` to check that you're using the standard code style - `cargo test --workspace` to check that all tests pass (on Windows make sure to [enable developer mode](https://learn.microsoft.com/en-us/windows/apps/get-started/developer-mode-features-and-debugging)) - `cargo run -- -c "use toolkit.nu; toolkit test stdlib"` to run the tests for the standard library > **Note** > from `nushell` you can also use the `toolkit` as follows > ```bash > use toolkit.nu # or use an `env_change` hook to activate it automatically > toolkit check pr > ``` --> # After Submitting <!-- If your PR had any user-facing changes, update [the documentation](https://github.com/nushell/nushell.github.io) after the PR is merged, if necessary. This will help us keep the docs up to date. -->
This commit is contained in:
parent
6fcd09682c
commit
366e52b76d
1 changed files with 1 additions and 1 deletions
|
@ -76,7 +76,7 @@ pub fn web_examples() -> Vec<Example<'static>> {
|
|||
},
|
||||
Example {
|
||||
example: "http get https://en.wikipedia.org/wiki/List_of_cities_in_India_by_population |
|
||||
query web --as-table [City 'Population(2011)[3]' 'Population(2001)[3][a]' 'State or unionterritory' 'Ref']",
|
||||
query web --as-table [City 'Population(2011)[3]' 'Population(2001)[3][a]' 'State or unionterritory' 'Reference']",
|
||||
description: "Retrieve a html table from Wikipedia and parse it into a nushell table using table headers as guides",
|
||||
result: None
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue