Skip to content

Commit

Permalink
refactor(api): cleanup information and added commentary
Browse files Browse the repository at this point in the history
  • Loading branch information
wzrdtales committed Nov 30, 2016
1 parent 793a3db commit 3e06b1c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion api.js
Expand Up @@ -165,6 +165,11 @@ dbmigrate.prototype = {
return true;
},

/**
* Registers and initializes hooks.
*
* @returns Promise
*/
registerAPIHook: function(callback) {

var plugins = this.internals.plugins;
Expand Down Expand Up @@ -550,7 +555,7 @@ function setDefaultArgv(internals, isModule) {
'ignore-completed-migrations': false
})
.usage(
'Usage: db-migrate [up|down|reset|sync|create|db|seed|transition] ' +
'Usage: db-migrate [up|down|reset|sync|create|db|transition] ' +
'[[dbname/]migrationName|all] [options]'
)

Expand Down

0 comments on commit 3e06b1c

Please sign in to comment.