Commit 9b7abfc
Eric Bower
·
2026-05-07 10:29:19 -0400 EDT
parent 7c5ac83
style(runner): tweaks
M
main.go
+25,
-1
1@@ -465,7 +465,31 @@ func eventHandler(cfg *Cfg, eventData *Event) error {
2
3 manifest, err := eng.FindManifest()
4 if err != nil {
5- fmt.Fprintf(os.Stdout, "❌ %s\n", err)
6+ fmt.Fprintf(os.Stdout, "❌ %s\n\n", err)
7+ fmt.Fprint(os.Stdout, `Create a pico.sh script in your workspace root:
8+
9+ #!/usr/bin/env bash
10+ set -euo pipefail
11+
12+ export ZMX_SESSION_PREFIX="${ZMX_SESSION_PREFIX:-ci.}"
13+
14+ # Run your CI steps as zmx sessions
15+ zmx run lint -d <your lint command>
16+ zmx run test -d <your test command>
17+
18+ # Wait for all steps to complete
19+ zmx wait "*"
20+
21+ printf "\x1b[32msuccess!\x1b[0m\n"
22+
23+Each 'zmx run' spawns a parallel session. 'zmx wait "*"' blocks
24+until all child sessions finish.
25+
26+You can also run this script in isolation without the runner.
27+
28+See: https://github.com/picosh/pici
29+
30+`)
31 return err
32 }
33 fmt.Fprintf(os.Stdout, "🔍 found %s\n", manifest)
M
pico.sh
+1,
-1
1@@ -1,5 +1,5 @@
2 #!/usr/bin/env bash
3-set -xeuo pipefail
4+set -euo pipefail
5
6 export ZMX_SESSION_PREFIX="${ZMX_SESSION_PREFIX:-ci.}"
7