Commit 9b7abfc

Eric Bower  ·  2026-05-07 10:29:19 -0400 EDT
parent 7c5ac83
style(runner): tweaks
2 files changed,  +26, -2
+25, -1
......@@ -465,7 +465,31 @@ func eventHandler(cfg *Cfg, eventData *Event) error {
465465
466466 manifest, err := eng.FindManifest()
467467 if err != nil {
468- fmt.Fprintf(os.Stdout, "❌ %s\n", err)
468+ fmt.Fprintf(os.Stdout, "❌ %s\n\n", err)
469+ fmt.Fprint(os.Stdout, `Create a pico.sh script in your workspace root:
470+
471+ #!/usr/bin/env bash
472+ set -euo pipefail
473+
474+ export ZMX_SESSION_PREFIX="${ZMX_SESSION_PREFIX:-ci.}"
475+
476+ # Run your CI steps as zmx sessions
477+ zmx run lint -d <your lint command>
478+ zmx run test -d <your test command>
479+
480+ # Wait for all steps to complete
481+ zmx wait "*"
482+
483+ printf "\x1b[32msuccess!\x1b[0m\n"
484+
485+Each 'zmx run' spawns a parallel session. 'zmx wait "*"' blocks
486+until all child sessions finish.
487+
488+You can also run this script in isolation without the runner.
489+
490+See: https://github.com/picosh/pici
491+
492+`)
469493 return err
470494 }
471495 fmt.Fprintf(os.Stdout, "🔍 found %s\n", manifest)
+1, -1
......@@ -1,5 +1,5 @@
11 #!/usr/bin/env bash
2-set -xeuo pipefail
2+set -euo pipefail
33
44 export ZMX_SESSION_PREFIX="${ZMX_SESSION_PREFIX:-ci.}"
55