What is the most common shell scripting method in Clojure?

I found great examples of what Im looking for here: http://hugoduncan.org/post/2010/shell_scripting_in_clojure_with_pallet.xhtml

But it seems that this "tray" is not what it was before ... it says: "A tray is a platform for flexible and software automation of infrastructure in the cloud, on server racks or directly on virtual machines. Operating system independence and provides an unprecedented level of customization. " β€œThis is not what I want.” I need only shell scripts.

Is there something similar in Clojure?

+6
source share
2 answers

The part of the pallet that converts the s1 expressions to w120> into a shell script is called Stevedore and is available as a separate library: https://github.com/pallet/stevedore

The documentation on the Pallets and Stevedore on the Pallet website may not always be complete or accurate (the documents are slightly behind the current code), so you may need to be a little puzzled.

Out of curiosity, what shell script would you like to make in Clojure?

+6
source

If Stevedore seems redundant for your particular case, you can create simple clojure scripts and run them like any shell script using the Leiningen "lein-exec" plugin.

http://www.unexpected-vortices.com/clojure/brief-beginners-guide/standalone-scripts.html

+3
source

Source: https://habr.com/ru/post/912223/


All Articles