Skip to content

Commit a7b11ca

Browse files
committed
refactor(completion): generate shell completions from comptime metadata
Replace hardcoded zsh/bash completion scripts with dynamic generation from a single CmdMeta table. The exhaustive switch on cli.Command ensures new commands trigger a compile error until their completion metadata is added. Also add link_libc=true to build.zig for mirror_probe's POSIX socket calls, fixing cross-compilation errors on CI (x86_64-linux).
1 parent 883cec2 commit a7b11ca

3 files changed

Lines changed: 294 additions & 109 deletions

File tree

build.zig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ pub fn build(b: *std.Build) void {
3737
.root_source_file = b.path("src/main.zig"),
3838
.target = target,
3939
.optimize = optimize,
40+
.link_libc = true,
4041
}),
4142
});
4243

0 commit comments

Comments
 (0)