Files
bun.sh/src/shell/util.zig
Meghan Denny e209ae81dd meta: ensure there's a single 'bun' import per file in zig (#10137)
* meta: ensure there's a single 'bun' import per file in zig

* undo this change in codegen
2024-04-09 22:41:07 -07:00

31 lines
855 B
Zig

const IPC = @import("../bun.js/ipc.zig");
const Allocator = std.mem.Allocator;
const uws = bun.uws;
const std = @import("std");
const default_allocator = bun.default_allocator;
const bun = @import("root").bun;
const Environment = bun.Environment;
const Async = bun.Async;
const JSC = bun.JSC;
const JSValue = JSC.JSValue;
const JSGlobalObject = JSC.JSGlobalObject;
const Which = @import("../which.zig");
const Output = bun.Output;
const PosixSpawn = @import("../bun.js/api/bun/spawn.zig").PosixSpawn;
const os = std.os;
pub const OutKind = enum {
stdout,
stderr,
pub fn toFd(this: OutKind) bun.FileDescriptor {
return switch (this) {
.stdout => bun.STDOUT_FD,
.stderr => bun.STDERR_FD,
};
}
};
pub const Stdio = bun.spawn.Stdio;
pub const WatchFd = if (Environment.isLinux) std.os.fd_t else i32;