mirror of
https://github.com/nushell/nu_scripts.git
synced 2024-08-17 01:10:36 +03:00
Adding http oneliner and changing reference to renamed Discord channel. (#731)
The [cookbook intro page](https://www.nushell.sh/cookbook/) gives an example of a oneliner that I recently changed to imply is one of the oneliners from this repo (nushell/nushell.github.io#1205), however that oneliner isn't actually in this repo. This adds that oneliner to the repo. I also replaced the mention of the \#cool-oneliners channel that was renamed to \#cool-scripts to just mention the general Nushell community.
This commit is contained in:
parent
30d386e363
commit
2d9e279ad8
@ -1,6 +1,6 @@
|
||||
# cool oneliners
|
||||
|
||||
Capturing oneliners to and from the nushell Discourse channel `#cool-oneliners`.
|
||||
Capturing oneliners to and from the nushell community.
|
||||
|
||||
Consider these a living library.
|
||||
Or an ongoing story of how people actually use `nu`.
|
||||
|
2
sourced/cool-oneliners/simple_http_request.nu
Normal file
2
sourced/cool-oneliners/simple_http_request.nu
Normal file
@ -0,0 +1,2 @@
|
||||
# Makes an http request to a URL and gets the "value" field off the JSON response.
|
||||
(http get https://api.chucknorris.io/jokes/random).value
|
Loading…
Reference in New Issue
Block a user