(args: string[])
| 67 | } |
| 68 | |
| 69 | function isSshInteractive(args: string[]): boolean { |
| 70 | const hasForcedTty = args.includes("-t") || args.includes("-tt"); |
| 71 | const hasRemoteCmd = args.some((a) => !a.startsWith("-") && a.includes(" ")); |
| 72 | return hasForcedTty || !hasRemoteCmd; |
| 73 | } |
| 74 | |
| 75 | export function getBlockingCommand(lastCommand: string | null, inAltBuffer: boolean): string | null { |
| 76 | if (!lastCommand) return null; |
no outgoing calls
no test coverage detected