Socket
Socket
Sign inDemoInstall

cowmand

Package Overview
Dependencies
Maintainers
1
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cowmand - npm Package Compare versions

Comparing version 0.0.5-beta.2 to 0.0.5

54

dist/program.js
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
var __importDefault = (this && this.__importDefault) || function (mod) {

@@ -38,26 +29,25 @@ return (mod && mod.__esModule) ? mod : { "default": mod };

program.start = function start(callback) {
return __awaiter(this, void 0, void 0, function* () {
let index = 0;
const next = (error) => {
if (error)
console.log(error);
if (index >= this.stack.length)
return;
let layerStack;
let match;
while (match !== true && index < this.stack.length) {
layerStack = this.stack[index];
match = layerStack.match(this.params.command);
index++;
if (!match) {
continue;
}
layerStack.handle({ session: this.session, params: this.params }, terminal_1.terminal, next);
return;
let index = 0;
const next = (error) => {
if (error)
console.log(error);
if (index >= this.stack.length)
return;
let layerStack;
let match;
while (match !== true && index < this.stack.length) {
layerStack = this.stack[index];
match = layerStack.match(this.params.command);
index++;
if (!match) {
continue;
}
};
next();
if (callback)
callback();
});
layerStack.handle({ session: this.session, params: this.params }, terminal_1.terminal, next);
// TODO: Use Layers of error to validate when has a error.
return;
}
};
next();
if (callback)
callback();
};

@@ -64,0 +54,0 @@ program.use = function use(firstArgument) {

{
"name": "cowmand",
"version": "0.0.5-beta.2",
"version": "0.0.5",
"description": "Fast helper to create a cli",

@@ -5,0 +5,0 @@ "tags": [

![TheMath](https://i.imgur.com/dWPzX9W.png)
# _🐮 Cowmand - _IN DEVELOPMENT_
# _🐮 Cowmand - _BETA_

@@ -7,2 +7,18 @@ ## Introduction

## Installation
This is a [Node.js](https://nodejs.org/en/) module available through the
[npm registry](https://www.npmjs.com/package/cowmmand).
Use npm:
```
$ npm install cowmmand
```
Use yarn:
```
$ yarn add cowmmand
```
## Example Initial

@@ -54,6 +70,5 @@

****
Esse projeto está sob a licença MIT. Veja o arquivo [LICENSE][license-link] para mais detalhes.
This project is under the MIT license. See the [LICENSE][license-link] file for more details.
<!-- Markdown link & img's -->
<!-- Markdown link & img's -->
[license-link]: /LICENSE
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc