3 ms·
What I noticed about this - I'm not thrilled right now about using node to write console helper scripts, but the CLI lib they're using here does have a pretty n
by ufmace 8y ago
What I noticed about this - I'm not thrilled right now about using node to write console helper scripts, but the CLI lib they're using here does have a pretty nice interface. I do like Python generally for doing scripting type things, but there doesn't seem to be any mindshare for any cli helper libs for it other than click, which IMO has a really clumsy, awkward interface. Ruby is generally my favorite go-to now, and it has a bunch of cli helper libs with a variety of types of interfaces, at least some of which have what I consider to be a really slick interface.
If I was better at Python, I might try my hand at writing a better Python cli lib myself. I'm surprised nobody else has yet.
- moltar 8y agoHeroku has released their cli framework recently. It’s really good.
- mattschmulen 8y agoI have had some nice results with swift. It’s still predominately Apple tech (macOS,iOS) but the packages manager is nice and it’s has nice “script” feel for a compiled language.
- mixmastamyk 8y agoNot sure what you are referring to, Py CLI libs are a dime a dozen? Not to mention argparse has been getting better. https://opensource.com/article/17/5/4-practical-python-libraries https://opensource.com/article/17/5/4-practical-python-libra...
- ufmace 8y agoI'm interested in finding a Python CLI lib for building command suite apps. I've written a few with Click, and its architecture seems weird and clumsy to me. I looked at that website, and it doesn't list any command suite libs other than Click. There's a few other CLI-related libs, but for doing stuff like making prompts work nicely. My usual go-to for that kind of stuff is Escort for Ruby. Everything is defined at a place and level that makes sense IMO.
- mixmastamyk 8y agoSearched for "command suite" got nothing. Searched for "ruby escort," found services in las vegas. ;) If you mean sub-commands like version control software has, argparse can do it. A bit clunky, but doable.