Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

command-line-interface

Package Overview
Dependencies
Maintainers
3
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

command-line-interface - npm Package Compare versions

Comparing version 3.6.0 to 3.6.1

1

build/lib/addHelpCommandToCli.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.addHelpCommandToCli = void 0;
const help_1 = require("./commands/help");

@@ -4,0 +5,0 @@ const addHelpCommandToCli = function ({ rootCommand }) {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.helpCommand = void 0;
const helpCommand = {

@@ -4,0 +5,0 @@ name: 'help',

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.helpOption = void 0;
const helpOption = {

@@ -4,0 +5,0 @@ name: 'help',

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.convertOptionDefinition = void 0;
const errors_1 = require("./errors");

@@ -4,0 +5,0 @@ const convertOptionDefinition = function ({ optionDefinition }) {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.errors = void 0;
const defekt_1 = require("defekt");

@@ -4,0 +5,0 @@ const errors = defekt_1.defekt({

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getCommandByPath = void 0;
const errors_1 = require("./errors");

@@ -4,0 +5,0 @@ const getCommandByPath = function ({ rootCommand, commandPath }) {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getCommandsByPath = void 0;
const getCommandByPath_1 = require("./getCommandByPath");

@@ -4,0 +5,0 @@ const getCommandsByPath = function ({ rootCommand, commandPath }) {

3

build/lib/index.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.runCli = void 0;
const runCli_1 = require("./runCli");
exports.runCli = runCli_1.runCli;
Object.defineProperty(exports, "runCli", { enumerable: true, get: function () { return runCli_1.runCli; } });
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getRecommendCommand = void 0;
const recommendCommand_1 = require("./recommendCommand");

@@ -4,0 +5,0 @@ const getRecommendCommand = function ({ rootCommand }) {

@@ -6,2 +6,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.recommendCommand = void 0;
const errors_1 = require("../errors");

@@ -8,0 +9,0 @@ const getCommandByPath_1 = require("../getCommandByPath");

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.runCli = void 0;
const addHelpCommandToCli_1 = require("./addHelpCommandToCli");

@@ -4,0 +5,0 @@ const getGetUsage_1 = require("./usage/getGetUsage");

@@ -6,2 +6,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.runCliRecursive = void 0;
const command_line_commands_1 = __importDefault(require("command-line-commands"));

@@ -8,0 +9,0 @@ const convertOptionDefinition_1 = require("./convertOptionDefinition");

import { Command } from '../elements/Command';
import { CommandPath } from '../elements/CommandPath';
import commandLineUsage from 'command-line-usage';
import { Section } from 'command-line-usage';
declare const getCommandLineUsageConfiguration: ({ rootCommand, commandPath }: {
rootCommand: Command<any>;
commandPath: CommandPath;
}) => commandLineUsage.Section[];
}) => Section[];
export { getCommandLineUsageConfiguration };

@@ -6,2 +6,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.getCommandLineUsageConfiguration = void 0;
const convertOptionDefinition_1 = require("../convertOptionDefinition");

@@ -8,0 +9,0 @@ const getCommandsByPath_1 = require("../getCommandsByPath");

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getCommandSynopsis = void 0;
const optionToString_1 = require("./optionToString");

@@ -4,0 +5,0 @@ const getCommandSynopsis = function ({ command }) {

@@ -6,2 +6,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.getGetUsage = void 0;
const command_line_usage_1 = __importDefault(require("command-line-usage"));

@@ -8,0 +9,0 @@ const getCommandLineUsageConfiguration_1 = require("./getCommandLineUsageConfiguration");

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.optionToString = void 0;
const optionToString = ({ option }) => {

@@ -4,0 +5,0 @@ var _a;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.validateOptions = void 0;
const errors_1 = require("./errors");

@@ -4,0 +5,0 @@ // Throws an error if any option does not match its defined type or is undefined.

@@ -0,1 +1,8 @@

## [3.6.1](https://github.com/thenativeweb/command-line-interface/compare/3.6.0...3.6.1) (2020-07-13)
### Bug Fixes
* bump defekt from 5.0.1 to 5.1.0 ([#94](https://github.com/thenativeweb/command-line-interface/issues/94)) ([f21cad8](https://github.com/thenativeweb/command-line-interface/commit/f21cad8b0c9abc4e434424f871b0d10221254ce3))
# [3.6.0](https://github.com/thenativeweb/command-line-interface/compare/3.5.1...3.6.0) (2020-02-23)

@@ -2,0 +9,0 @@

{
"name": "command-line-interface",
"version": "3.6.0",
"version": "3.6.1",
"description": "command-line-interface is a foundation for CLI applications.",

@@ -18,6 +18,10 @@ "contributors": [

"dependencies": {
"@types/command-line-args": "5.0.0",
"@types/command-line-commands": "2.0.1",
"@types/command-line-usage": "5.0.1",
"@types/string-similarity": "3.0.0",
"command-line-args": "5.1.1",
"command-line-commands": "3.0.1",
"command-line-usage": "6.1.0",
"defekt": "5.0.1",
"defekt": "5.1.0",
"string-similarity": "4.0.1",

@@ -27,13 +31,8 @@ "strip-indent": "3.0.0"

"devDependencies": {
"@types/command-line-args": "5.0.0",
"@types/command-line-commands": "2.0.1",
"@types/command-line-usage": "5.0.1",
"@types/common-tags": "1.8.0",
"@types/sinon": "7.5.1",
"@types/string-similarity": "3.0.0",
"assertthat": "5.1.0",
"record-stdstreams": "3.0.0",
"roboter": "11.0.23",
"semantic-release-configuration": "1.0.18",
"sinon": "9.0.0"
"@types/sinon": "9.0.4",
"assertthat": "5.1.1",
"record-stdstreams": "3.0.4",
"roboter": "11.2.6",
"semantic-release-configuration": "1.0.20",
"sinon": "9.0.2"
},

@@ -40,0 +39,0 @@ "repository": {

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