mirror of
https://github.com/oven-sh/bun
synced 2026-02-10 19:08:50 +00:00
22 lines
446 B
Zig
22 lines
446 B
Zig
pub const OutKind = enum {
|
|
stdout,
|
|
stderr,
|
|
|
|
pub fn toFd(this: OutKind) bun.FileDescriptor {
|
|
return switch (this) {
|
|
.stdout => .stdout(),
|
|
.stderr => .stderr(),
|
|
};
|
|
}
|
|
};
|
|
|
|
pub const Stdio = bun.spawn.Stdio;
|
|
|
|
pub const WatchFd = if (Environment.isLinux) posix.fd_t else i32;
|
|
|
|
const bun = @import("bun");
|
|
const Environment = bun.Environment;
|
|
|
|
const std = @import("std");
|
|
const posix = std.posix;
|