1
0
mirror of https://github.com/nushell/nushell.git synced 2025-03-24 13:37:32 +01:00
nushell/crates/nu-command/tests/commands/url
Lucas Chaim a03c1c266c
Add url decode command ()
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 

# Description
Added a new `url decode` command to compliment the existing `url
encode`, as proposed by myself in .
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
..
decode.rs Add url decode command () 2023-10-05 18:43:58 +02:00
join.rs Use int type name consistently () 2023-10-03 18:24:32 +02:00
mod.rs Add url decode command () 2023-10-05 18:43:58 +02:00
parse.rs Clean up tests containing unnecessary cwd: tokens () 2023-07-17 18:43:51 +02:00