Skip to content
This repository has been archived by the owner on Jun 8, 2021. It is now read-only.

Commit

Permalink
Merge branch 'release-3.0.5'
Browse files Browse the repository at this point in the history
  • Loading branch information
thetutlage committed Aug 1, 2017
2 parents dd43560 + f3841c8 commit 21e44ba
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 5 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
@@ -1,3 +1,13 @@
<a name="3.0.5"></a>
## [3.0.5](https://github.com/adonisjs/adonis-cli/compare/v3.0.4...v3.0.5) (2017-08-01)


### Bug Fixes

* **commands:** use as flag over name ([e11ae80](https://github.com/adonisjs/adonis-cli/commit/e11ae80))



<a name="3.0.4"></a>
## [3.0.4](https://github.com/adonisjs/adonis-cli/compare/v3.0.3...v3.0.4) (2017-08-01)

Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "@adonisjs/cli",
"version": "3.0.4",
"version": "3.0.5",
"description": "Command line tool for Adonisjs",
"keywords": [
"adonis",
Expand Down
4 changes: 2 additions & 2 deletions src/Commands/Install/index.js
Expand Up @@ -47,7 +47,7 @@ class Install extends Command {
return `
install
{ module : Npm module name }
{ --name=@value : Name of the module, required when installing from github or local file system }
{ --as=@value : Name of the module, required when installing from github or local file system }
{ --yarn: Use yarn over npm for installation }
{ -s, --skip-instructions: Do not run post install instructions }
`
Expand Down Expand Up @@ -76,7 +76,7 @@ class Install extends Command {
*
* @return {void}
*/
async handle ({ module: packageName }, { yarn, skipInstructions, name }) {
async handle ({ module: packageName }, { yarn, skipInstructions, as: name }) {
const acePath = path.join(process.cwd(), 'ace')
const exists = await this.pathExists(acePath)

Expand Down
4 changes: 2 additions & 2 deletions src/Commands/Instructions/index.js
Expand Up @@ -48,7 +48,7 @@ class Instructions extends Command {
return `
run:instructions
{ directory : Directory path for which to run instructions }
{ --name=@value: Name of the module }
{ --as=@value: Name of the module }
`
}

Expand All @@ -75,7 +75,7 @@ class Instructions extends Command {
*
* @return {void}
*/
async handle ({ directory }, { name }) {
async handle ({ directory }, { as: name }) {
const modulePath = path.isAbsolute(directory) ? directory : path.join(process.cwd(), directory)
name = name || path.basename(modulePath)
const ctx = new Context(this, this.Helpers)
Expand Down

0 comments on commit 21e44ba

Please sign in to comment.