News for hackers. Stuff that matters.
Re:How I Automated My Job by ufmace on Friday June 08, 2018 @05:04PM (#17269662)
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.

Re:How I Automated My Job by moltar on Friday June 08, 2018 @09:04PM (#17270930)
Heroku has released their cli framework recently. It’s really good.
Re:How I Automated My Job by mixmastamyk on Saturday June 09, 2018 @02:55PM (#17274441)
Not 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-libra...

Re:How I Automated My Job by ufmace on Sunday June 10, 2018 @11:30PM (#17281529)
I'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.

Re:How I Automated My Job by mixmastamyk on Monday June 11, 2018 @12:03PM (#17285408)
Searched 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.

Re:How I Automated My Job by mattschmulen on Friday June 08, 2018 @10:19PM (#17271155)
I 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.