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

@hyperone/cli-framework

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hyperone/cli-framework - npm Package Compare versions

Comparing version 2.0.8 to 2.0.9

20

command.js

@@ -9,2 +9,3 @@

const escape = value => `${value}`.replace('{', '\\\{').replace('}', '\\\}');
class Command {

@@ -56,3 +57,3 @@ constructor(options = {}) {

}
async getUsage() {
async renderUsage() {
const options = await this.getOptions();

@@ -74,2 +75,3 @@ const fullName = this.getFullName();

header: examples.length > 1 ? 'Examples' : 'Example',
examples,
content: examples.map(({ title, command }) => `

@@ -95,4 +97,18 @@ {bold ${title}}

]);
return commandLineUsage(content);
return content;
}
async getUsage(...args) {
const usage = await this.renderUsage(...args);
return commandLineUsage(usage.map(x => {
const override = {};
if (x.summary) {
override.summary.replace('\[(.+?)\]\((.+?)\)', (match) => `${match[1]} (${match[2]})`);
override.raw = true;
}
return {
...x,
...override,
};
}));
}
async exec(argv, parentOpts = {}) {

@@ -99,0 +115,0 @@ const options = await this.getOptions();

4

package.json
{
"name": "@hyperone/cli-framework",
"version": "2.0.8",
"version": "2.0.9",
"description": "",

@@ -20,3 +20,3 @@ "main": "index.js",

},
"gitHead": "4cfaa43a86700d54c7ebb2e81474a8f8f32d1b63"
"gitHead": "d5f0ac0bbe9626e5c7c63f60b5b81702ad89d6b3"
}
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