( hookEvent: 'Setup' | 'SessionStart' | 'CwdChanged' | 'FileChanged', hookIndex: number, )
| 23 | } |
| 24 | |
| 25 | export async function getHookEnvFilePath( |
| 26 | hookEvent: 'Setup' | 'SessionStart' | 'CwdChanged' | 'FileChanged', |
| 27 | hookIndex: number, |
| 28 | ): Promise<string> { |
| 29 | const prefix = hookEvent.toLowerCase() |
| 30 | return join(await getSessionEnvDirPath(), `${prefix}-hook-${hookIndex}.sh`) |
| 31 | } |
| 32 | |
| 33 | export async function clearCwdEnvFiles(): Promise<void> { |
| 34 | try { |
no test coverage detected