POSIX single-quote escape for embedding a value in a shell command.
(value: string)
| 35 | |
| 36 | /** POSIX single-quote escape for embedding a value in a shell command. */ |
| 37 | function shellQuote(value: string): string { |
| 38 | return `'${value.replace(/'/g, `'\\''`)}'` |
| 39 | } |
| 40 | |
| 41 | /** Last path segment of a `gitSkill` clone dir, used as the skills-dir name. */ |
| 42 | function basenameOf(path: string): string { |
no test coverage detected