(command: string[] | null)
| 294 | } |
| 295 | |
| 296 | export const arrayCommandToString = (command: string[] | null) => { |
| 297 | if (isArray(command)) { |
| 298 | return command |
| 299 | .map((arg) => (arg.includes(' ') ? `"${arg}"` : arg)) |
| 300 | .join(' ') |
| 301 | } |
| 302 | |
| 303 | return null |
| 304 | } |
| 305 | |
| 306 | export const getCommandMarkdown = ( |
| 307 | command: ICommand, |