cowmand
Advanced tools
Comparing version 0.0.4 to 0.0.5-beta.0
@@ -16,3 +16,3 @@ import { Terminal } from '../terminal'; | ||
export declare type NextFunction = NextFunctionSuccess | NextFunctionError; | ||
export declare type CommandFunction = (context: Context, terminal: Terminal, nextFunction: NextFunction) => void; | ||
export declare type CommandFunction = (context: Context, terminal: Terminal, nextFunction: NextFunction) => void | Promise<void>; | ||
export declare type CommandErrorFunction = (error: Error, context: Context, terminal: Terminal, nextFunction: NextFunction) => void; | ||
@@ -19,0 +19,0 @@ export interface OptionsLayer { |
@@ -54,3 +54,3 @@ "use strict"; | ||
} | ||
execution.handle({ session: this.session, params: this.params }, terminal_1.terminal, () => console.log('next')); | ||
yield execution.handle({ session: this.session, params: this.params }, terminal_1.terminal, () => console.log('next')); | ||
} | ||
@@ -57,0 +57,0 @@ } |
{ | ||
"name": "cowmand", | ||
"version": "0.0.4", | ||
"version": "0.0.5-beta.0", | ||
"description": "Fast helper to create a cli", | ||
"keywords": [ | ||
"tags": [ | ||
"cli", | ||
@@ -7,0 +7,0 @@ "command", |
20038