Having recently done html-table-cli, which basically creates a react app from JSON, implementing an interactive mode for ramda-cli started to seem like more than just a cool idea. I've also had feedback that it would be nice if developing pipelines was easier.
The key point in creating interactive mode was to complement the command line, not to replace it. The interactive mode allows incrementally building pipelines with shorter feedback cycle. Input still comes from stdin, and output goes to stdout once you close the tab.
It works quite well.
Give it a go, (and let me know if it doesn't work 😄)
Copy pasteable example
curl -Ls http://bit.ly/gist-people-json | npx ramda-cli \
'filter (p) -> p.city is /Port/ or p.name is /^Dr\./' \
'filter (p) -> p.email?.includes ".info"' \
'project <[ name city mac email ]>' \
'take 100' \
--interactive \
-o table --compact
or npm install -g ramda-cli@alpha and go wild with --interactive
Having recently done
html-table-cli
, which basically creates a react app from JSON, implementing an interactive mode for ramda-cli started to seem like more than just a cool idea. I've also had feedback that it would be nice if developing pipelines was easier.The key point in creating interactive mode was to complement the command line, not to replace it. The interactive mode allows incrementally building pipelines with shorter feedback cycle. Input still comes from stdin, and output goes to stdout once you close the tab.
It works quite well.
Give it a go, (and let me know if it doesn't work 😄)
Copy pasteable example
orÂ
npm install -g ramda-cli@alpha
and go wild with--interactive