@hackbg/cmds
import { CommandContext } from '@hackbg/cmds'
class MyCommands extends CommandContext {
cmd1 = this.command('cmd1', 'command 1', () => {})
}
new MyCommands('my commands')
.addCommand('cmd2', 'command 2', () => {}, () => {})
import { CommandContext } from '@hackbg/cmds'
class MyCommands extends CommandContext {
cmd1 = this.command('cmd1', 'command 1', () => {})
}
new MyCommands('my commands')
.addCommand('cmd2', 'command 2', () => {}, () => {})
npm i @hackbg/cmds
26
3.0.0
MIT
53.8 kB
18