raine / ramda-cli

:ram: A CLI tool for processing data with functional pipelines
ISC License
573 stars 12 forks source link

Question: how to make destructing of object? #6

Closed sergey-lapin closed 8 years ago

sergey-lapin commented 8 years ago

Hi, thanks for your awesome lib. I am wondering if there any way to do destructuring on some object with it. For example: cat channels_list.json | R keys - gives me

[
"ok",
"channels"
]

And I want to get channels cat channels_list.json | R '(x => x.channels)' - does not work

raine commented 8 years ago

Hi Sergey, can you give an example of channels_list.json?

But if the input is an object, any of these will do:

sergey-lapin commented 8 years ago

Ahh thanks, you right just missed --js flag!