Examples
Go CI wrapper
Overview
Wrap zof CLI in Go-based internal tooling with shared config.
Examples use staging environments and synthetic identifiers. Replace project IDs, suite names, and webhook URLs with your organization values.
Prerequisites
- Organization API key or authenticated CLI
- Staging environment for safe experimentation
Step-by-step procedure
Prepare environment
Store ZOF_API_KEY in CI secrets or local env.
Confirm target project and suite IDs in Console.
Apply pattern
Copy example configuration into your pipeline or service.
Adjust environment names and notification channels.
Validate
Run once manually before enforcing gates.
Capture run ID in runbook for support reference.
Example implementation
cmd := exec.Command("zof", "run", "--wait", "--env", "staging")
cmd.Env = append(os.Environ(), "ZOF_API_KEY="+apiKey)
if err := cmd.Run(); err != nil { os.Exit(1) }Was this page helpful?