(name: string)
| 211 | } |
| 212 | |
| 213 | const humanize = (name: string): string => { |
| 214 | const words = name.split(/[-_]+/).filter((word) => word.length > 0) |
| 215 | if (words.length === 0) return name |
| 216 | return [words[0][0].toUpperCase() + words[0].slice(1), ...words.slice(1)].join(" ") |
| 217 | } |
| 218 | |
| 219 | const logCurrentCommand = (commandLine: ReadonlyArray<string>): Effect.Effect<void> => |
| 220 | Console.log(renderCommandBlock("Current command", commandLine, Ansi.magenta)) |
no test coverage detected