Skip to content

Commit

Permalink
create a base command class
Browse files Browse the repository at this point in the history
  • Loading branch information
voxsim committed Mar 4, 2017
1 parent 3521496 commit 2b23ade
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
7 changes: 7 additions & 0 deletions src/cli/commands/base.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/* @flow */

export default class BaseCommand {
static hasWrapper(): boolean {
return true;
}
}
3 changes: 2 additions & 1 deletion src/cli/commands/help.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
/* @flow */

import type BaseCommand from './base.js';
import * as commands from './index.js';
import * as constants from '../../constants.js';
import type {Reporter} from '../../reporters/index.js';
import type Config from '../../config.js';
import {sortAlpha, hyphenate} from '../../util/misc.js';
const chalk = require('chalk');

export default class HelpCommand {
export default class HelpCommand extends BaseCommand {
static hasWrapper(): boolean {
return false;
}
Expand Down

0 comments on commit 2b23ade

Please sign in to comment.