bun.shell: Add .quiet(boolean)

This commit is contained in:
Michael H
2025-10-15 11:43:38 +11:00
committed by GitHub
parent b17133a9e9
commit 37ad295114
5 changed files with 37 additions and 13 deletions

View File

@@ -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;
}