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

pkgcloud-cli

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pkgcloud-cli - npm Package Compare versions

Comparing version 0.3.0 to 0.3.1

bin/pkgcloud-network

23

helpers.js

@@ -15,3 +15,4 @@ var cloud = require('pkgcloud');

'storage' : 'STORAGE',
'dns' : 'DNS'
'dns' : 'DNS',
'network' : 'NETWORK'
};

@@ -66,2 +67,5 @@

}
else if (type === CLIENT_TYPES.network) {
client = cloud.network.createClient(config.network[0]);
}
if (type === CLIENT_TYPES.storage) {

@@ -102,2 +106,19 @@ client = cloud.storage.createClient(config.storage[0]);

exports.getNetworkTableDefinition = function() {
return {
head: ['ID', 'Tenant ID', 'NAME', 'Status', 'Up', 'Shared'],
colWidths: [40, 40, 30, 10, 10, 10]
};
};
exports.getNetworkRow = function(network) {
return [
network.id,
network.tenantId || 'N/A',
network.name || 'N/A',
network.status || 'N/A',
network.adminStateUp || 'N/A',
network.shared || 'N/A'];
};
module.exports = exports;

12

package.json
{
"name": "pkgcloud-cli",
"version": "0.3.0",
"version": "0.3.1",
"description": "CLI for pkgcloud",

@@ -39,3 +39,7 @@ "scripts": {

"pkgcloud-dns-create-zone-record": "./bin/pkgcloud-dns-create-zone-record",
"pkgcloud-dns-delete-zone-record": "./bin/pkgcloud-dns-delete-zone-record"
"pkgcloud-dns-delete-zone-record": "./bin/pkgcloud-dns-delete-zone-record",
"pkgcloud-network": "./bin/pkgcloud-network",
"pkgcloud-network-network-list": "./bin/pkgcloud-network-network-list",
"pkgcloud-network-network-create": "./bin/pkgcloud-network-network-create",
"pkgcloud-network-network-destroy": "./bin/pkgcloud-network-network-destroy"
},

@@ -54,4 +58,4 @@ "repository": {

"dependencies": {
"commander": "~2.2.0",
"pkgcloud": "~0.8.17",
"commander": "~2.0.0",
"pkgcloud": "~0.9.5",
"nconf": "~0.6.7",

@@ -58,0 +62,0 @@ "path": "~0.4.9",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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