mirror of
https://github.com/nushell/nushell.git
synced 2024-11-27 10:53:57 +01:00
8d5165c449
# 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`.
3 lines
21 B
Rust
3 lines
21 B
Rust
mod join;
|
|
mod parse;
|