Wrote up my thoughts on why #nushell matters. And yes, they get a bit spicy 😅
Wrote up my thoughts on why #nushell matters. And yes, they get a bit spicy 😅
@jntrnr
Makes me want to try nushell again!
Most of my scripting needs these days are around exploring data from Sentry issues, where their web UI isn't good enough. I load a few dozen or thousands of events, throw certain properties into buckets, then see what different kind of root causes I can find. I often miss an option to easily cache the API response, which sometimes takes a minute to load all the data. I wonder how nushell fits in there?
Depends on how you like to do it, but I sometimes just immediately start by creating a new variable to put everything into.
```
let foo = (call to external website)
```
Then at least I don't have to call the website again, I have it in memory. Then, I can write it out to a file or process it or whatever.
Beyond that, we don't offer anything special for caching.
@jntrnr
Makes sense. It's probably easy enough to write a little file system caching abstraction that uses the URL as cache key.
Using nodejs works for this kind of scripting, but I think the interactivity of nushell would fit much better while exploring the data.