mirror of
https://github.com/alkimake/paperclip.git
synced 2026-06-17 03:10:38 +09:00
cursor adapter: auto-pass trust flag for non-interactive runs
This commit is contained in:
parent
eabfd9d9f6
commit
8f70e79240
4 changed files with 200 additions and 5 deletions
9
packages/adapters/cursor-local/src/shared/trust.ts
Normal file
9
packages/adapters/cursor-local/src/shared/trust.ts
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
export function hasCursorTrustBypassArg(args: readonly string[]): boolean {
|
||||
return args.some(
|
||||
(arg) =>
|
||||
arg === "--trust" ||
|
||||
arg === "--yolo" ||
|
||||
arg === "-f" ||
|
||||
arg.startsWith("--trust="),
|
||||
);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue