nushell/crates/nu-command/src
KazukiY cde56741fb
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>
...
```
2023-01-20 10:38:30 -08:00
..
bits Further cleanup of Span::test_data usage + span fixes (#7595) 2022-12-24 07:41:57 -06:00
bytes Fix typos and use more idiomatic assertions (#7755) 2023-01-15 15:03:32 +13:00
charting Fix typos by codespell (#7600) 2022-12-26 02:31:26 -05:00
conversions Further cleanup of Span::test_data usage + span fixes (#7595) 2022-12-24 07:41:57 -06:00
core_commands fix signature display in help commands (#7802) 2023-01-20 07:58:54 -06:00
database LazyRecord (#7619) 2023-01-18 19:27:26 -08:00
dataframe update sqlparser dependency (#7772) 2023-01-15 21:30:39 -06:00
date Add extra_usage messages for subcommand-only commands (#7594) 2022-12-24 07:16:29 -06:00
deprecated fetch -> http get and post -> http post (#7796) 2023-01-20 10:38:30 -08:00
env Fix an example of env command (#7603) 2022-12-26 16:40:34 +08:00
experimental Change instances of Value::string("foo", Span::test_data()) to Value::test_string("foo") (#7592) 2022-12-24 10:25:38 +01:00
filesystem Check all user groups. (#7775) 2023-01-17 19:49:54 -06:00
filters let find take linebreaks into account in Value::String (#7789) 2023-01-20 00:07:34 +01:00
formats LazyRecord (#7619) 2023-01-18 19:27:26 -08:00
generators Further cleanup of Span::test_data usage + span fixes (#7595) 2022-12-24 07:41:57 -06:00
hash Add extra_usage messages for subcommand-only commands (#7594) 2022-12-24 07:16:29 -06:00
math Fix typos and use more idiomatic assertions (#7755) 2023-01-15 15:03:32 +13:00
misc Add more input/output type annotations (#7532) 2022-12-21 20:20:46 +01:00
network fetch -> http get and post -> http post (#7796) 2023-01-20 10:38:30 -08:00
path spanned error on path exists command (#7717) 2023-01-12 06:56:39 -06:00
platform add magenta to ansi command as synonym for purple (#7785) 2023-01-17 19:50:55 -06:00
random Add search terms in random and expression categories (#7736) 2023-01-12 14:01:40 +01:00
shells Add more input/output type annotations (#7532) 2022-12-21 20:20:46 +01:00
strings fetch -> http get and post -> http post (#7796) 2023-01-20 10:38:30 -08:00
system Trim quotes when shelling out to cmd.exe (#7740) 2023-01-13 11:00:30 -08:00
viewers LazyRecord (#7619) 2023-01-18 19:27:26 -08:00
default_context.rs fetch -> http get and post -> http post (#7796) 2023-01-20 10:38:30 -08:00
example_test.rs Make stream info visible to users in describe (#7589) 2023-01-03 21:08:05 -08:00
input_handler.rs Standardise the use of ShellError::UnsupportedInput and ShellError::TypeMismatch and add spans to every instance of the former (#7217) 2022-12-23 01:48:53 -05:00
lib.rs Progress bar Implementation (#7661) 2023-01-10 20:57:48 -05:00
progress_bar.rs Progress bar Implementation (#7661) 2023-01-10 20:57:48 -05:00
sort_utils.rs Further cleanup of Span::test_data usage + span fixes (#7595) 2022-12-24 07:41:57 -06:00