mirror of
https://github.com/oven-sh/bun
synced 2026-02-12 20:09:04 +00:00
bun.shell: Add .quiet(boolean)
This commit is contained in:
@@ -56,8 +56,9 @@ pub fn setCwd(this: *ParsedShellScript, globalThis: *JSGlobalObject, callframe:
|
||||
return .js_undefined;
|
||||
}
|
||||
|
||||
pub fn setQuiet(this: *ParsedShellScript, _: *JSGlobalObject, _: *jsc.CallFrame) bun.JSError!jsc.JSValue {
|
||||
this.quiet = true;
|
||||
pub fn setQuiet(this: *ParsedShellScript, _: *JSGlobalObject, callframe: *jsc.CallFrame) bun.JSError!jsc.JSValue {
|
||||
const arg = callframe.argument(0);
|
||||
this.quiet = arg.toBoolean();
|
||||
return .js_undefined;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user