(_name: string, _icon: string)
| 62 | return this; |
| 63 | } |
| 64 | section(_name: string, _icon: string): this { |
| 65 | const icon = _icon + (PAD_EMOJI.has(_icon) ? ' ' : ''); |
| 66 | const name = _name.toUpperCase(); |
| 67 | const line = ''.padEnd(50 - name.length - 1, '─'); |
| 68 | _program.command('', `\n\n${icon} ${name} ${line}`); |
| 69 | return this; |
| 70 | } |
| 71 | command(name: string, desc: string): ICommand { |
| 72 | return new CommandImpl(_program, name, desc); |
| 73 | } |