(args: { name: string }, logPath: string | undefined)
| 40 | } |
| 41 | |
| 42 | export function insertSessionName(args: { name: string }, logPath: string | undefined) { |
| 43 | return logPath |
| 44 | ? logPath.replace(/\${name}/ig, filenameSafe(args.name || "unnamed-session")) |
| 45 | : logPath; |
| 46 | } |
| 47 | |
| 48 | export function insertWorkspaceName<T extends string | undefined>(p: T): string | (undefined extends T ? undefined : never) { |
| 49 | if (typeof p !== "string") |
no test coverage detected