Nushell Plugin
Encoder: json
Version: 0.117.0
Plugin file path: /usr/bin/nu_plugin_query
Command: query
Description:
> Show all the query commands
Flags:
-h, --help: Display the help message for this command
Parameters:
======================
Command: query json
Description:
> execute json query on json file (open --raw <file> | query json 'query string')
Extra description:
> query json uses the gjson crate https://github.com/tidwall/gjson.rs to query json data.
Flags:
-h, --help: Display the help message for this command
Parameters:
query <string>: Json query.
======================
Command: query xml
Description:
> Execute XPath 1.0 query on XML input
Extra description:
> Scalar results (Number, String, Boolean) are returned as nu scalars.
Output of the nodeset results depends on the flags used:
- No flags: returns a table with `string_value` column.
- You have to specify `--output-string-value` to include `string_value` in the output when using any other `--output-*` flags.
- `--output-type` includes `type` column with node type.
- `--output-names` includes `local_name`, `prefixed_name`, and `namespace` columns.
Flags:
-h, --help: Display the help message for this command
-n, --namespaces <record>: Map of prefixes to namespace URIs.
--output-string-value: Include `string_value` in the nodeset output. On by default.
--output-type: Include `type` in the nodeset output. Off by default.
--output-names: Include `local_name`, `prefixed_name`, and `namespace` in the nodeset output. Off by default.
Parameters:
query <string>: Xpath query.
======================
Command: query web
Description:
> execute selector query on html/web
Flags:
-h, --help: Display the help message for this command
-q, --query <string>: Selector query.
-m, --as-html: Return the query output as html.
-a, --attribute <any>: Downselect based on the given attribute.
-t, --as-table <list<string>>: Find table based on column header list.
-i, --inspect: Run in inspect mode to provide more information for determining column headers.
-d, --document: Parse the input as a full HTML document instead of a fragment
Parameters:
======================
Command: query webpage-info
Description:
> uses the webpage crate to extract info from html: title, description, language, links, RSS feeds, Opengraph, Schema.org, and more
Flags:
-h, --help: Display the help message for this command
Parameters:
======================
Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.