@@ -49,10 +49,10 @@ pub fn main() !void {
4949 \\OMNI is designed to be used as a filter in your agentic pipelines.
5050 \\
5151 ;
52- try std .io . getStdOut ().writer ().print ("{s}" , .{help_text });
52+ try std .fs . File . stdout ().deprecatedWriter ().print ("{s}" , .{help_text });
5353 return ;
5454 } else if (std .mem .eql (u8 , cmd , "-v" ) or std .mem .eql (u8 , cmd , "--version" ) or std .mem .eql (u8 , cmd , "version" )) {
55- try std .io . getStdOut ().writer ().print ("OMNI Core v0.1.0 (Zig)\n " , .{});
55+ try std .fs . File . stdout ().deprecatedWriter ().print ("OMNI Core v0.1.0 (Zig)\n " , .{});
5656 return ;
5757 }
5858 }
@@ -61,22 +61,22 @@ pub fn main() !void {
6161 var stdin_file = std .fs .File .stdin ();
6262 const input = stdin_file .readToEndAlloc (allocator , 1024 * 1024 * 10 ) catch | err | {
6363 if (err == error .EndOfStream ) {
64- try std .io . getStdErr ().writer ().print ("Error: No input provided via stdin.\n Use 'omni --help' for usage.\n " , .{});
64+ try std .fs . File . stderr ().deprecatedWriter ().print ("Error: No input provided via stdin.\n Use 'omni --help' for usage.\n " , .{});
6565 std .process .exit (1 );
6666 }
6767 return err ;
6868 };
6969 defer allocator .free (input );
7070
7171 if (input .len == 0 ) {
72- try std .io . getStdErr ().writer ().print ("Error: Empty input provided via stdin.\n " , .{});
72+ try std .fs . File . stderr ().deprecatedWriter ().print ("Error: Empty input provided via stdin.\n " , .{});
7373 std .process .exit (1 );
7474 }
7575
7676 const compressed = try compressor .compress (allocator , input , filters .items );
7777 defer allocator .free (compressed );
7878
79- try std .io . getStdOut ().writer ().print ("{s}\n " , .{compressed });
79+ try std .fs . File . stdout ().deprecatedWriter ().print ("{s}\n " , .{compressed });
8080}
8181
8282test "compressor integration" {
0 commit comments