Closed pulkitsinghal closed 9 years ago
So I couldn't figure out how or where the hello.js
command is being spit out by code when user runs ronin new hello-world
but if I understood that better I would basically just add one called history.js
that would prompt the users to provide a path to any folder that is shared across their machines. Then save a history file in there that tracks the commands being run by the user.
Hm, I really really don't think it's a good idea.
If you definitely need this functionality for your program, you can either fork Ronin or implement it in your program directly.
Thanks Vadim. Makes sense.
Don't hate me!
I intend to help out with this feature request, I'm recording the motivation and problem statement here for feedback before I fork and start a PR. You may not see this as something that should be part of the Ronin framework so its best to get your feedback first and not waste any time.
First some PROs:
I often use Ronin when I don't want to build a website for solving problems when a cmd line tool will suffice.
Now some CONs:
When the same CLI tool (developed with Ronin) is useful enough to be installed by users on multiple machines, some unique feedback crops up:
Depending on the developer (me), the commands can get kind of long~ish and the only thing that autocompletes is the program name and not the commands. So I hear feedback about how that's a pain. So a shared history across machines (out-of-the-box for any Ronin-built program) would be quite a sweet feature. It would let any developer's audience leverage copy/paste from within the terminal like:
$ my-ronin-program link-shared-folder
... as I finish writing this, I'm not so sure this particular bullet point is something that belongs in Ronin itself ... but I'll leave it here in case it sparks an idea on your side.