diff --git a/sourced/cool-oneliners/README.md b/sourced/cool-oneliners/README.md index 5bb77e6..4921833 100644 --- a/sourced/cool-oneliners/README.md +++ b/sourced/cool-oneliners/README.md @@ -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`. diff --git a/sourced/cool-oneliners/simple_http_request.nu b/sourced/cool-oneliners/simple_http_request.nu new file mode 100644 index 0000000..8246693 --- /dev/null +++ b/sourced/cool-oneliners/simple_http_request.nu @@ -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