This website requires JavaScript.
Explore
Help
Sign In
extern
/
nushell
Watch
1
Star
0
Fork
1
You've already forked nushell
mirror of
https://github.com/nushell/nushell.git
synced
2024-12-29 10:29:42 +01:00
Code
Issues
Packages
Projects
Releases
Wiki
Activity
84742275a1
nushell
/
crates
/
nu-command
/
tests
/
commands
/
url
/
mod.rs
4 lines
33 B
Rust
Raw
Normal View
History
Unescape
Escape
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
mod
decode
;
Feat/7725 url join (#7823) # Description Added command: `url join`. Closes: #7725 # User-Facing Changes ``` Converts a record to url Search terms: scheme, username, password, hostname, port, path, query, fragment Usage: > url join Flags: -h, --help - Display the help message for this command Signatures: <record> | url join -> <string> Examples: Outputs a url representing the contents of this record > { "scheme": "http", "username": "", "password": "", "host": "www.pixiv.net", "port": "", "path": "/member_illust.php", "query": "mode=medium&illust_id=99260204", "fragment": "", "params": { "mode": "medium", "illust_id": "99260204" } } | url join Outputs a url representing the contents of this record > { "scheme": "http", "username": "user", "password": "pwd", "host": "www.pixiv.net", "port": "1234", "query": "test=a", "fragment": "" } | url join Outputs a url representing the contents of this record > { "scheme": "http", "host": "www.pixiv.net", "port": "1234", "path": "user", "fragment": "frag" } | url join ``` # Questions - Which parameters should be required? Currenlty are: `scheme` and `host`.
2023-01-22 19:49:40 +01:00
mod
join
;
new command `url parse` (#6854) and `url` subcommands tests (#7124) *code refactor from PR tips & clippy fixes *added username, password, and fragment *commands `url host`, `url scheme`, `url query`, and `url path` removed *tests refactoring - avoid formatted output
2022-11-19 19:14:29 +01:00
mod
parse
;
Reference in New Issue
Copy Permalink