mirror of
https://github.com/nushell/nushell.git
synced 2025-08-10 10:38:07 +02:00
fetch
-> http get
and post
-> http post
(#7796)
# Updated description by @rgwood This PR changes `fetch` to `http get` and `post` to `http post`. `fetch` and `post` are now deprecated. [I surveyed people on Discord](https://discord.com/channels/601130461678272522/601130461678272524/1065706282566307910) and users strongly approved of this change. # Original Description This PR is related to #2741 and my first pull request in rust :) Implemented a new http mod to better http support and alias `fetch` and `post` commands to `http get` and `http post` respectively. # User-Facing Changes Users will be able to use HTTP method via http command, for example ``` shell > http get "https://www.example.com" <!doctype html> <html> ... ```
This commit is contained in:
@ -18,5 +18,7 @@ pub fn deprecated_commands() -> HashMap<String, String> {
|
||||
"build-string".to_string(),
|
||||
"str join'/'string concatenation with '+'".to_string(),
|
||||
),
|
||||
("fetch".to_string(), "http get".to_string()),
|
||||
("post".to_string(), "http post".to_string()),
|
||||
])
|
||||
}
|
||||
|
Reference in New Issue
Block a user