Comparing version 0.2.0 to 0.2.1
@@ -1,2 +0,2 @@ | ||
import { Terminal } from '../terminal'; | ||
import { Terminal } from '../Terminal'; | ||
export interface Params { | ||
@@ -3,0 +3,0 @@ command: string; |
declare function createProgram(): import("./program").Program; | ||
export { Context, NextFunction } from './Commands/Layer'; | ||
export { Terminal } from './terminal'; | ||
export { Terminal } from './Terminal'; | ||
export { createProgram }; | ||
export default createProgram; |
@@ -8,3 +8,3 @@ "use strict"; | ||
const debug_1 = __importDefault(require("debug")); | ||
const terminal_1 = require("./terminal"); | ||
const Terminal_1 = require("./Terminal"); | ||
const Layer_1 = require("./Commands/Layer"); | ||
@@ -51,5 +51,5 @@ const debug = (0, debug_1.default)('cowmand:program'); | ||
if (error && layerStack.handleError) { | ||
layerStack.handleError(error, { session: this.session, params: this.params }, terminal_1.terminal, next); | ||
layerStack.handleError(error, { session: this.session, params: this.params }, Terminal_1.terminal, next); | ||
} | ||
layerStack.handle({ session: this.session, params: this.params }, terminal_1.terminal, next); | ||
layerStack.handle({ session: this.session, params: this.params }, Terminal_1.terminal, next); | ||
// TODO: Use Layers of error to validate when has a error. | ||
@@ -56,0 +56,0 @@ return; |
{ | ||
"name": "cowmand", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "Fast helper to create a cli", | ||
@@ -5,0 +5,0 @@ "tags": [ |
@@ -73,3 +73,3 @@ ![Cowmand][cowmand-logo] | ||
- [x] Terminal - Add question on terminal | ||
- [ ] Terminal - Add option to hide a password | ||
- [x] Terminal - Add option to hide a password | ||
@@ -76,0 +76,0 @@ **** |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
25376
24
585