MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / isNonInteractiveShellExec

Function isNonInteractiveShellExec

frontend/app/view/term/shellblocking.ts:48–54  ·  view source on GitHub ↗
(args: string[])

Source from the content-addressed store, hash-verified

46}
47
48function isNonInteractiveShellExec(args: string[]): boolean {
49 return (
50 args.includes("-c") ||
51 args.some((a) => a === "-Command" || a.startsWith("-Command")) ||
52 args.some((a) => a.endsWith(".sh") || a.includes("/"))
53 );
54}
55
56function isAttachLike(cmd: string, args: string[]): boolean {
57 if (cmd === "docker" || cmd === "podman") {

Callers 1

getBlockingCommandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected