Re:Introducing nushell
by munchbunny on Friday August 23, 2019 @07:54PM
(#20784023)
PowerShell has an IMO good answer to this: if you run a classic CLI program, its output is interpreted as an array of strings (lines), so if you pipe the output, you have a way to process it into something object-like.
Having a toggle creates the problem that you have to write two implementations for your tools, or you end up having to memorize which commands can run in which modes. It's easier to have a consistent pattern and a way to up-convert existing CLI programs.
Mario uses Python objects in pipelines instead of plain text.
Re:Introducing nushell
by joshspankit on Friday August 23, 2019 @07:54PM
(#20784026)
Oh lordy where to begin.
Re:Introducing nushell
by joshspankit on Friday August 23, 2019 @07:55PM
(#20784033)
Ahh yes. Here’s where to begin: https://xkcd.com/927/
What issues could be faced with this approach?