Skip to content

Commit d549d51

Browse files
Antigravity Agentclaude
andcommitted
fix: Use AnyWriter for plugin CLI stdout/stderr
- Changed from std.fs.File.Writer to std.io.AnyWriter for flexibility - Fixed test to use const instead of var 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 9476d0e commit d549d51

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/vibeec/plugin/plugin_cmd.zig

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,8 @@ pub const PluginCLI = struct {
125125
allocator: Allocator,
126126
registry: *PluginRegistry,
127127
loader: *PluginLoader,
128-
stdout: std.fs.File.Writer,
129-
stderr: std.fs.File.Writer,
128+
stdout: std.io.AnyWriter,
129+
stderr: std.io.AnyWriter,
130130

131131
const Self = @This();
132132

@@ -570,6 +570,6 @@ test "plugin cli init" {
570570
var loader = PluginLoader.init(allocator, &registry, .{});
571571
defer loader.deinit();
572572

573-
var cli = PluginCLI.init(allocator, &registry, &loader);
573+
const cli = PluginCLI.init(allocator, &registry, &loader);
574574
_ = cli;
575575
}

0 commit comments

Comments
 (0)