Skip to content

Commit

Permalink
chore: move add before invoke in commands
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Mar 4, 2018
1 parent 49e9cf2 commit 8b24ec6
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/@vue/cli/bin/vue.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,19 +47,19 @@ program
})

program
.command('invoke <plugin> [pluginOptions]')
.command('add <plugin> [pluginOptions]')
.allowUnknownOption()
.description('invoke the generator of a plugin in an already created project')
.description('install a plugin and invoke its generator in an already created project')
.action((plugin) => {
require('../lib/invoke')(plugin, minimist(process.argv.slice(3)))
require('../lib/add')(plugin, minimist(process.argv.slice(3)))
})

program
.command('add <plugin> [pluginOptions]')
.command('invoke <plugin> [pluginOptions]')
.allowUnknownOption()
.description('install a plugin and invoke its generator in an already created project')
.description('invoke the generator of a plugin in an already created project')
.action((plugin) => {
require('../lib/add')(plugin, minimist(process.argv.slice(3)))
require('../lib/invoke')(plugin, minimist(process.argv.slice(3)))
})

program
Expand Down

0 comments on commit 8b24ec6

Please sign in to comment.