nushell/crates/nu-command/src
Lucas Chaim a03c1c266c
Add url decode command (#10611)
Implemented URL decoding as a url subcommand, created corresponding unit
tests. The logic, examples and descriptions were based on the existing
`url encode` command.

Resolves #10563

# Description
Added a new `url decode` command to compliment the existing `url
encode`, as proposed by myself in #10563.
It takes a string, list of strings or cell path and produces the
corresponding decoded strings.

![image](https://github.com/nushell/nushell/assets/4030336/815a34e9-7ceb-4d09-9d74-e700ba513b17)

# User-Facing Changes
New url subcommand `url decode`, as described above.

# Tests + Formatting
I've added unit tests for the new subcommand and ensured all actions
outlined below showed no issues.
- [x] `cargo fmt --all -- --check`
- [x] `cargo clippy --workspace -- -D warnings -D clippy::unwrap_used`
- [x] `cargo test --workspace`
- [x] `cargo run -- -c "use std testing; testing run-tests --path
crates/nu-std"`
2023-10-05 18:43:58 +02:00
..
bytes Move Value to helpers, separate span call (#10121) 2023-09-03 07:27:29 -07:00
charting Move Value to helpers, separate span call (#10121) 2023-09-03 07:27:29 -07:00
conversions Use int type name consistently (#10579) 2023-10-03 18:24:32 +02:00
database Move Value to helpers, separate span call (#10121) 2023-09-03 07:27:29 -07:00
date Move Value to helpers, separate span call (#10121) 2023-09-03 07:27:29 -07:00
debug Add --env and --wrapped flags to def (#10566) 2023-10-02 21:13:31 +03:00
env Fix editor config for reedline and config nu/env (#10535) 2023-09-29 16:36:03 +02:00
experimental Add functions for each Value case (#9736) 2023-07-21 08:20:33 -05:00
filesystem Revert "Port command examples to long option" (#10597) 2023-10-04 09:41:13 +13:00
filters Use int type name consistently (#10579) 2023-10-03 18:24:32 +02:00
formats Use int type name consistently (#10579) 2023-10-03 18:24:32 +02:00
generators Use int type name consistently (#10579) 2023-10-03 18:24:32 +02:00
hash Move Value to helpers, separate span call (#10121) 2023-09-03 07:27:29 -07:00
help Add 'help escapes' command for quick reference of nushell string escapes (#10522) 2023-09-30 09:04:27 -05:00
math Use int type name consistently (#10579) 2023-10-03 18:24:32 +02:00
misc REFACTOR: move source out of deprecated commands (#9060) 2023-05-04 00:02:03 +02:00
network Add url decode command (#10611) 2023-10-05 18:43:58 +02:00
path Move Value to helpers, separate span call (#10121) 2023-09-03 07:27:29 -07:00
platform Bump dialoguer to 0.11.0 (#10510) 2023-09-26 18:00:16 +02:00
random Rename random integer to random int (#10520) 2023-09-28 11:47:05 +02:00
removed Rename misused "deprecation" to removal (#10000) 2023-08-15 07:17:31 +12:00
shells Fix usage for the exit command. (#9450) 2023-06-16 10:09:02 +02:00
strings Remove str replace --string after deprecation (#10064) 2023-09-19 15:54:20 +02:00
system Ps: add cwd column on linux and macos (#10347) 2023-09-14 08:10:15 -05:00
viewers Revert "Port command examples to long option" (#10597) 2023-10-04 09:41:13 +13:00
default_context.rs Add url decode command (#10611) 2023-10-05 18:43:58 +02:00
example_test.rs feat: Add unfold command (#10489) 2023-09-30 09:08:06 -05:00
lib.rs Move eval_hook to nu-cmd-base (#10146) 2023-08-29 23:46:50 +02:00
progress_bar.rs cp progress bar implementation (#8012) 2023-02-22 11:57:38 -08:00
sort_utils.rs Use slices directly instead of &Vec (#10328) 2023-09-12 11:38:20 +08:00