feat: zag CLI with all commands, human/JSON/XML output and e2e smoke test (M5)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Daniel SamsonandClaude Sonnet 5.5 committed 2026-10-17 13:47:34 +01:00
1 parent 35106d405b
commit 9d08e4d3fd
13 files changed
+2147 -68

No files matched your search

+5
View File
@@ -39,6 +39,11 @@ pub fn build(b: *std.Build) void {
run_cmd.step.dependOn(b.getInstallStep());
if (b.args) |args| run_cmd.addArgs(args);
const e2e_step = b.step("e2e", "Run the end-to-end smoke test against the built binary");
const e2e = b.addSystemCommand(&.{ "bash", "test/e2e.sh" });
e2e.addArtifactArg(exe);
e2e_step.dependOn(&e2e.step);
const test_step = b.step("test", "Run tests");
test_step.dependOn(&b.addRunArtifact(b.addTest(.{ .root_module = mod })).step);
test_step.dependOn(&b.addRunArtifact(b.addTest(.{ .root_module = exe.root_module })).step);