2023-01-15 18:16:29 +00:00
|
|
|
mod build_query;
|
2023-10-05 16:43:58 +00:00
|
|
|
mod decode;
|
2023-01-05 18:24:38 +00:00
|
|
|
mod encode;
|
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 18:49:40 +00:00
|
|
|
mod join;
|
2022-11-19 18:14:29 +00:00
|
|
|
mod parse;
|
2022-02-05 17:35:02 +00:00
|
|
|
mod url_;
|
2021-12-10 00:09:30 +00:00
|
|
|
|
|
|
|
use url::{self};
|
|
|
|
|
2022-11-19 18:14:29 +00:00
|
|
|
pub use self::parse::SubCommand as UrlParse;
|
2023-01-15 18:16:29 +00:00
|
|
|
pub use build_query::SubCommand as UrlBuildQuery;
|
2023-10-05 16:43:58 +00:00
|
|
|
pub use decode::SubCommand as UrlDecode;
|
2023-01-05 18:24:38 +00:00
|
|
|
pub use encode::SubCommand as UrlEncode;
|
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 18:49:40 +00:00
|
|
|
pub use join::SubCommand as UrlJoin;
|
2022-02-05 17:35:02 +00:00
|
|
|
pub use url_::Url;
|