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

cloud-config-toolkit-cli

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cloud-config-toolkit-cli - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

15

bin/user-defined.js
const yargs = require('yargs');
const R = require('ramda');
const { logError } = require('./commands-util/util');
const toolkit = require('./toolkit-instance');
const commandHandlers = R.mapObjIndexed(function(func) {
const commandHandlersWithToolkit = R.mapObjIndexed(function(func) {
return R.partial(func, [toolkit]);

@@ -18,7 +20,14 @@ }, {

if (typeof commands === 'object') {
if (Array.isArray(commands)) {
commands.forEach(function(module) {
yargs.command({
...module,
handler: R.partialRight(module.handler, [toolkit, commandHandlers])
async handler(argv) {
try {
await module.handler(argv, toolkit, commandHandlersWithToolkit);
} catch (error) {
logError(error);
process.exit(1);
}
}
})

@@ -25,0 +34,0 @@ .help()

2

package.json
{
"name": "cloud-config-toolkit-cli",
"version": "0.0.2",
"version": "0.0.3",
"description": "Cloud config toolkit: command line module",

@@ -5,0 +5,0 @@ "scripts": {

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