TREE command
Updated
Added a new rewritten file called tree2.lua. You can test both tree.lua and tree2.lua. tree2.lua is a bit slower version but it shows the tree properly unlike the other version (tree.lua).
At the moment the command does not sopport parameters.
You can help to add things to the command if you like.
Even though this is a little program, you could give some ideas for display or parameters.
@GreaseMonkey Thank you for your comment
There is still one problem with piping even thouth I changed to io library from "term". I thought "tree | more" or "tree | less" would work