Skip to content
This repository has been archived by the owner on Feb 27, 2022. It is now read-only.

Commit

Permalink
feat(command): register command on boot
Browse files Browse the repository at this point in the history
  • Loading branch information
thetutlage committed Aug 25, 2017
1 parent 5e69271 commit a9da0f6
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions providers/VowProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,19 @@ class VowProvider extends ServiceProvider {
this._registerApiClient()
this._regiterTestSuite()
}

/**
* When provider is booted, fold will call
* this method
*
* @method boot
*
* @return {void}
*/
boot () {
const ace = require('@adonisjs/fold')
ace.addCommand('Adonis/Commands/Test')
}
}

module.exports = VowProvider

0 comments on commit a9da0f6

Please sign in to comment.