@adonisjs/ace
Advanced tools
Comparing version 11.1.0 to 11.2.0
@@ -119,3 +119,3 @@ import * as ui from '@poppinss/cliui'; | ||
exit(): Promise<void>; | ||
exec(): Promise<any>; | ||
exec(): Promise<CommandContract>; | ||
handle?(...args: any[]): Promise<any>; | ||
@@ -122,0 +122,0 @@ run?(...args: any[]): Promise<any>; |
@@ -140,3 +140,3 @@ import { ApplicationContract } from '@ioc:Adonis/Core/Application'; | ||
*/ | ||
runDefaultCommand(): Promise<any>; | ||
runDefaultCommand(): Promise<CommandContract>; | ||
/** | ||
@@ -155,3 +155,3 @@ * Find if a command is the main command. Main commands are executed | ||
*/ | ||
exec(commandName: string, args: string[]): Promise<any>; | ||
exec(commandName: string, args: string[]): Promise<CommandContract>; | ||
/** | ||
@@ -158,0 +158,0 @@ * Makes instance of a given command by processing command line arguments |
@@ -453,3 +453,2 @@ "use strict"; | ||
let commandError; | ||
let commandResponse; | ||
/** | ||
@@ -462,3 +461,3 @@ * Wrapping the command execution inside a try/catch, so that | ||
await this.hooks.execute('before', 'run', commandInstance); | ||
commandResponse = await commandInstance.exec(); | ||
await commandInstance.exec(); | ||
} | ||
@@ -478,3 +477,3 @@ catch (error) { | ||
} | ||
return commandResponse; | ||
return commandInstance; | ||
} | ||
@@ -481,0 +480,0 @@ /** |
{ | ||
"name": "@adonisjs/ace", | ||
"version": "11.1.0", | ||
"version": "11.2.0", | ||
"description": "Commandline apps framework used by AdonisJs", | ||
@@ -5,0 +5,0 @@ "main": "build/index.js", |
123125
3541