nushell/crates/nu-command/src
Bahex 719d9aa83c
provide a common implementation for query string conversions in url join and url build-query (#14173)
Addresses one of the points in #14162

# Description

Factors out part of the `url::build_query::to_url` function into a
separate function `url::query::record_to_qs()`, which is then used in
both `url::build_query` and `url::join`.

# User-Facing Changes

Like with `url build-query` (after #14073), `url join` will allow list
values in `params` and behavior of two commands will be same.

```nushell
> {a: ["one", "two"], b: "three"} | url build-query
"a=one&a=two&b=three"

> {scheme: "http", host: "host", params: {a: ["one", "two"], b: "three"}} | url join 
"http://host?a=one&a=two&b=three"
```

# Tests + Formatting

Added an example to `url join` for the new behavior.
2024-10-29 06:33:14 -05:00
..
bytes Change the usage misnomer to "description" (#13598) 2024-08-22 12:02:08 +02:00
charting Replace raw usize IDs with new types (#13832) 2024-09-30 13:20:15 +02:00
conversions run ensure_flag_arg_type for short flag values (#14074) 2024-10-20 23:12:57 +02:00
database Change the usage misnomer to "description" (#13598) 2024-08-22 12:02:08 +02:00
date Change the usage misnomer to "description" (#13598) 2024-08-22 12:02:08 +02:00
debug Reduce duplicate dependencies on the windows crate (#14105) 2024-10-20 23:14:11 +02:00
env Reduce duplication in history path construction (#13475) 2024-10-11 07:51:50 -05:00
experimental Change the usage misnomer to "description" (#13598) 2024-08-22 12:02:08 +02:00
filesystem Add metadata on open --raw with bytestreams (#14141) 2024-10-23 16:50:15 -05:00
filters Defensive handling of errors when transposing (#14096) 2024-10-22 11:30:48 -05:00
formats make adding newlines with to text more consistent and opt-out-able (#14158) 2024-10-23 16:49:51 -05:00
generators Change the usage misnomer to "description" (#13598) 2024-08-22 12:02:08 +02:00
hash add binary as input to hash commands (#13923) 2024-09-25 16:47:52 +08:00
help add is_const to help commands and scope commands (#14125) 2024-10-21 12:54:18 +02:00
math Change the usage misnomer to "description" (#13598) 2024-08-22 12:02:08 +02:00
misc Replace raw usize IDs with new types (#13832) 2024-09-30 13:20:15 +02:00
network provide a common implementation for query string conversions in url join and url build-query (#14173) 2024-10-29 06:33:14 -05:00
path fix path exists on a non-directory file (#13763) 2024-09-11 12:45:39 -05:00
platform Send both 2J and 3J on clear (#14181) 2024-10-28 06:42:18 -05:00
random support filesize arguments in random binary/chars (#14068) 2024-10-12 14:49:05 +08:00
removed Change the usage misnomer to "description" (#13598) 2024-08-22 12:02:08 +02:00
shells Change the usage misnomer to "description" (#13598) 2024-08-22 12:02:08 +02:00
stor feat: stor insert accepts lists (#14175) 2024-10-29 06:32:55 -05:00
strings allow oem code pages to be used to decode text (#14187) 2024-10-29 06:32:35 -05:00
system add command_type to help (#14165) 2024-10-24 19:06:49 +02:00
viewers Introduce footer_inheritance option (#14070) 2024-10-23 19:45:47 +02:00
default_context.rs Remove group command (#14056) 2024-10-11 06:43:12 -05:00
example_test.rs Overhaul $in expressions (#13357) 2024-07-17 16:02:42 -05:00
lib.rs Add top-level crate documentation/READMEs (#12907) 2024-07-14 10:10:41 +02:00
progress_bar.rs Replace ExternalStream with new ByteStream type (#12774) 2024-05-16 07:11:18 -07:00
sort_utils.rs Rework sorting and add cell path and closure comparators to sort-by (#13154) 2024-10-09 19:18:16 -07:00