cowmand
Advanced tools
Comparing version 0.2.1 to 0.2.2
@@ -17,3 +17,3 @@ import { Terminal } from '../Terminal'; | ||
export declare type CommandFunction = (context: Context, terminal: Terminal, nextFunction: NextFunction) => void | Promise<void>; | ||
export declare type CommandErrorFunction = (error: Error, context: Context, terminal: Terminal, nextFunction: NextFunctionError) => void; | ||
export declare type CommandErrorFunction = (context: Context, terminal: Terminal, nextFunction: NextFunctionError, error: Error) => void; | ||
export interface OptionsLayer { | ||
@@ -20,0 +20,0 @@ subCommands: string[]; |
@@ -47,6 +47,6 @@ "use strict"; | ||
}, | ||
end() { | ||
process.exit(0); | ||
end(status = 0) { | ||
process.exit(status); | ||
} | ||
}; | ||
exports.terminal = terminal; |
{ | ||
"name": "cowmand", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"description": "Fast helper to create a cli", | ||
@@ -5,0 +5,0 @@ "tags": [ |
@@ -67,2 +67,5 @@ ![Cowmand][cowmand-logo] | ||
## Docs | ||
**Terminal** [Docs](/docs/Terminal.md) | ||
## New Features | ||
@@ -69,0 +72,0 @@ |
36511
36
850
85