by aeroxis on 6/11/17, 7:27 PM with 53 comments
by rekwah on 6/12/17, 12:03 AM
Imagine writing a wrapper for "grep". It may work in one environment, but if you need portability, you're going to quickly realize that there are nuances in implementation and the actual calling interface. Now you're handling branching logic in your application code based on platform, version, etc.
Interfacing with a command line tool shouldn't be thought of much different than a remote HTTP/ReST API talking text/plain instead of application/json. You're looking for your "client wrapper" to handle argument validation, parsing, versioning, etc.
by hultner on 6/11/17, 8:00 PM
by onyb on 6/11/17, 10:54 PM
+1 for https://sultan.readthedocs.io/en/latest/sultan-examples.html...
I think it would be interesting if you could iterate on the results of "ls -l", where each row is represented by an object.
by asdfgadsfgasfdg on 6/11/17, 10:03 PM
s(command_from_potentially_unsafe_source).run()
compare with os.system(command_from_potentially_unsafe_source)
or subprocess.call(command_from_potentially_unsafe_source, shell=True)
securitywise? I'm assuming all three are equally bad?by Cynddl on 6/11/17, 8:33 PM
by gerdesj on 6/11/17, 9:58 PM
Anyone know how the name came about?
by Eridrus on 6/11/17, 10:31 PM
Which was super useful for controlling some utilities that wanted to be run in an interactive bash shell.
by fermigier on 6/11/17, 9:50 PM
This project looks interesting too, will give it a try.
BTW: Has anyone news on Fabric 2 ?
by vram22 on 6/12/17, 2:44 PM
https://news.ycombinator.com/item?id=8735892#8737512
Edit: That comment was part of an HN thead about this topic, which might be interesting in its own right:
Streem – a new programming language from Matz (github.com)
by santiagobasulto on 6/11/17, 11:07 PM
by brett40324 on 6/11/17, 9:46 PM
by llccbb on 6/11/17, 11:08 PM
by jklehm on 6/12/17, 11:54 AM
by rntksi on 6/12/17, 5:26 AM
by falsedan on 6/11/17, 9:16 PM
(I know why not to use plumbum)
by singularity2001 on 6/12/17, 9:00 AM
by kvajjha on 6/12/17, 6:16 AM
This line triggered me.
by pknerd on 6/12/17, 12:03 AM
Nice stuff though
by fnj on 6/11/17, 8:37 PM