~gpanders/wk

4f358b1aca29c3f19357695a8d0ea1338b4c1423 — Gregory Anders 16 days ago cce144c master
Import std.io in main.zig
1 files changed, 3 insertions(+), 2 deletions(-)

M src/main.zig
M src/main.zig => src/main.zig +3 -2
@@ 1,5 1,6 @@
const std = @import("std");
const fs = std.fs;
const io = std.io;
const mem = std.mem;
const os = std.os;
const warn = std.debug.warn;


@@ 56,11 57,11 @@ pub fn main() anyerror!void {
}

fn readFromStdin(allocator: *mem.Allocator) !?[]const []const u8 {
    if (std.io.getStdIn().isTty()) {
    if (io.getStdIn().isTty()) {
        return null;
    }

    const input = try std.io.getStdIn().inStream().readAllAlloc(allocator, 1 * 1024 * 1024);
    const input = try io.getStdIn().inStream().readAllAlloc(allocator, 1 * 1024 * 1024);

    var args = std.ArrayList([]const u8).init(allocator);