This website requires JavaScript.
Explore
Help
Sign In
holm
/
nushell
Watch
1
Star
1
Fork
0
You've already forked nushell
forked from
extern/nushell
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
c1d76bfac7
nushell
/
crates
/
nu-command
/
tests
/
commands
/
url
/
mod.rs
3 lines
21 B
Rust
Raw
Normal View
History
Unescape
Escape
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