Test Setup Failed
Push — master ( 624702...8ee19e )
by recca
02:47 queued 19s
created

resources/assets/js/commands/help.js   A

Size

Lines of Code 14

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
nc 1
dl 0
loc 14
rs 10
c 1
b 0
f 0
noi 1
1
'use strict';
2
3
import Command from './command';
4
5
export default class Help extends Command {
6
    match(name) {
7
        return ['list', 'help'].includes(name);
8
    }
9
10
    call(cmd) {
11
        this.api.echo(this.api.options.helpInfo);
12
        this.api.serverInfo();
13
    }
14
}
15