4 ms·
unclear use case imo - this sacrifices the ergonomics of actual bash scripting, and hides it behind another language If your script is complex enough to need a
by karma_daemon 3mo ago
unclear use case imo - this sacrifices the ergonomics of actual bash scripting, and hides it behind another language
If your script is complex enough to need a higher level language you might as well just switch to python
- paultopia 3mo agobash scripting has ergonomics?
- jeremyjh 3mo agoRegardless of where it’s deployed I can edit it and run it without any additional tools.
- beeb 3mo agoSo does an amber script after it's been compiled, that's the whole point. You can tweak it and inspect it if you want. Realistically though you'll probably regenerate it and copy the new compiled version over. But you can do both.
- jeremyjh 3mo agoIs it? There is no example of what the compiled output looks like in the website or github. Just because its bash doesn't mean its suitable to be maintained in bash.
- wpm 3mo agoYes?
- jeremyjh 3mo agoThe only thing I can think of is if you have an existing system you are integrating with thats implemented in shell script already - for example a packaging or build pack system; but I can’t really see how this could be justified even there because this could easily be a toy that becomes abandoned.
- ekidd 3mo agoA really common use case is install/bootstrap/setup scripts. You know, those sketchy curl-to-bash things, or cloud-init scripts, or whatever you run to set up your actual higher level tools like Python.
- mte90 3mo agoHi, I am one of the project maintainers :-) As said there are use cases where you want to use only bash because you can't install scripting languages with their dependences as example. As usual there is a tool for any user cases and Amber resolves some of them :-)