nushell/crates
Vincenzo Carlino 92c4097f8d
Rename to url command to url build-query (#7702)
# Description

Refactor command: "to url" in: "to url query". Changed usage sentence.
Closes: #7495

# User-Facing Changes

Now we get a query string from a record or table by using command: "to
url query".

```
> help to url query
Convert record or table into query string applying percent-encoding.

Usage:
  > to url query

Flags:
  -h, --help - Display the help message for this command

Signatures:
  <record> | to url query -> <string>
  <table> | to url query -> <string>

Examples:
  Outputs a query string representing the contents of this record
  > { mode:normal userid:31415 } | to url query

  Outputs a query string representing the contents of this 1-row table
  > [[foo bar]; ["1" "2"]] | to url query

  Outputs a query string representing the contents of this record
  > {a:"AT&T", b: "AT T"} | to url query
```

# Tests + Formatting

Added this test:
```
Example {
    description: "Outputs a query string representing the contents of this record",
    example: r#"{a:"AT&T", b: "AT T"} | to url query"#,
    result: Some(Value::test_string("a=AT%26T&b=AT+T")),
},
```
to ensure percent-encoding. 

# After Submitting

If PR is accepted I'll open another PR on documentation to notify
changes on
[this.](https://github.com/nushell/nushell.github.io/blob/main/book/commands/to_url.md)
2023-01-15 10:16:29 -08:00
..
nu-cli Add cursor shape configuration for each edit mode (#7745) 2023-01-13 14:37:39 -06:00
nu-color-config Bump to 0.74.1 development version (#7721) 2023-01-11 22:30:41 +01:00
nu-command Rename to url command to url build-query (#7702) 2023-01-15 10:16:29 -08:00
nu-engine Support redirect err and out to different streams (#7685) 2023-01-12 10:22:30 +01:00
nu-explore Fix typos and use more idiomatic assertions (#7755) 2023-01-15 15:03:32 +13:00
nu-glob Fix typos and use more idiomatic assertions (#7755) 2023-01-15 15:03:32 +13:00
nu-json Bump to 0.74.1 development version (#7721) 2023-01-11 22:30:41 +01:00
nu-parser Allow underscores in integers and floats (#7759) 2023-01-15 09:03:57 -06:00
nu-path Fix typos and use more idiomatic assertions (#7755) 2023-01-15 15:03:32 +13:00
nu-plugin Fix typos and use more idiomatic assertions (#7755) 2023-01-15 15:03:32 +13:00
nu-pretty-hex Fix typos and use more idiomatic assertions (#7755) 2023-01-15 15:03:32 +13:00
nu-protocol Ansi link (#7751) 2023-01-15 17:23:37 +02:00
nu-system Bump once_cell from 1.16.0 to 1.17.0 (#7732) 2023-01-11 23:00:44 +00:00
nu-table Fix typos and use more idiomatic assertions (#7755) 2023-01-15 15:03:32 +13:00
nu-term-grid Bump to 0.74.1 development version (#7721) 2023-01-11 22:30:41 +01:00
nu-test-support Bump to 0.74.1 development version (#7721) 2023-01-11 22:30:41 +01:00
nu-utils Add cursor shape configuration for each edit mode (#7745) 2023-01-13 14:37:39 -06:00
nu_plugin_custom_values Bump to 0.74.1 development version (#7721) 2023-01-11 22:30:41 +01:00
nu_plugin_example Bump to 0.74.1 development version (#7721) 2023-01-11 22:30:41 +01:00
nu_plugin_gstat Bump git2 from 0.15.0 to 0.16.0 (#7731) 2023-01-11 22:56:02 +00:00
nu_plugin_inc Bump to 0.74.1 development version (#7721) 2023-01-11 22:30:41 +01:00
nu_plugin_python Fix typos by codespell (#7600) 2022-12-26 02:31:26 -05:00
nu_plugin_query Bump to 0.74.1 development version (#7721) 2023-01-11 22:30:41 +01:00
README.md Remove old nushell/merge engine-q 2022-02-07 14:54:06 -05:00

Nushell core libraries and plugins

These sub-crates form both the foundation for Nu and a set of plugins which extend Nu with additional functionality.

Foundational libraries are split into two kinds of crates:

  • Core crates - those crates that work together to build the Nushell language engine
  • Support crates - a set of crates that support the engine with additional features like JSON support, ANSI support, and more.

Plugins are likewise also split into two types:

  • Core plugins - plugins that provide part of the default experience of Nu, including access to the system properties, processes, and web-connectivity features.
  • Extra plugins - these plugins run a wide range of different capabilities like working with different file types, charting, viewing binary data, and more.