News for hackers. Stuff that matters.
Re:Don't write command-line interfaces (and how to write if ... by arogozhnikov on Saturday October 10, 2020 @02:40PM (#24740919)
> API != User Interface. API = Programming Interface.

That's where we should start, but the other way around. Why do you keep trying to replace programming interfaces with bash calls?

Any example when calling cli compared to proposed alternative makes any difference to your spouse?

Re:Don't write command-line interfaces (and how to write if ... by ceceron on Thursday October 15, 2020 @03:49AM (#24785975)
Mostly because user interface is meant to expose the common tasks to the user vs API which is supposed to give a low level control. curl is a good example, as a tool is fairly accessible, but as the library it gives control on all the aspects of connection, requiring much more knowledge/skill from the programmer. Not every user has this kind of knowledge, but still may want to use curl to do quick HTTP requests.

User != Programmer

Also, "bash calls" are cool - shell is a great tool to compose many diverse tools written in different programming languages. If all the tools were just configurable via writing code in their implementation language: 1) you would have to know all the programming languages 2) you would have to somehow input the code, parameters are just shorter than code