You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+12-7
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@ Vero is experimental and not finished. At ekspono we use Vero for all our "scrip
11
11
12
12
## Setup
13
13
14
-
At the moment Vero is a bit complicated to set up. This is fine for us since we have a monorepo structure and a containerized dev environment where Vero is provided.
14
+
At the moment Vero is a bit complicated to set up. This is fine for us since we have a monorepo structure and a containerized dev environment where Vero is provided. Vero currently has a hard dependency on git and needs to be executed inside a git repository.
15
15
16
16
## Example
17
17
@@ -24,14 +24,13 @@ Here's an annotated example of a Vero script that tries to convey the most impor
24
24
25
25
**example.clj**
26
26
27
-
(`bin/vero` is a wrapper script that is used to fix argument passing on linux and MacOS when calling the Babashka binary)
27
+
(`../bin/vero` is a wrapper script that is used to fix argument passing on linux and MacOS when calling the Babashka binary)
28
28
29
29
```Clojure
30
-
#!bin/vero
31
-
32
30
#!../bin/vero
33
31
34
-
(require '[ekspono.vero :as vero])
32
+
(require '[ekspono.vero :as vero :refer [run <-run]]
33
+
'[ekspono.vero.errors :refer [fatal!]])
35
34
36
35
(defnsay-hello
37
36
[]
@@ -42,7 +41,14 @@ Here's an annotated example of a Vero script that tries to convey the most impor
42
41
(println from-opt)
43
42
(println from-env-var)
44
43
(println from-cmd)
45
-
(println from-edn-file)))
44
+
(println from-edn-file))
45
+
46
+
;; Vero has utility functions for calling other binaries.
47
+
(let [result (<-run ["echo""hello"])]
48
+
(println"Run commands and capture the exit status and output:" result))
0 commit comments