New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@idearium/cli

Package Overview
Dependencies
Maintainers
4
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@idearium/cli - npm Package Compare versions

Comparing version 3.0.0 to 3.0.1

.vscode/settings.json

6

bin/c-mk-delete.js

@@ -10,4 +10,8 @@ #!/usr/bin/env node

program
.option('-p [profile]', 'Specify a minikube profile, otherwise the default minikube profile will be used.')
.parse(process.argv);
exec('minikube delete');
const profile = program.P ? ` --profile ${program.P}` : '';
const command = `minikube delete${profile}`;
exec(command);

@@ -13,7 +13,11 @@ #!/usr/bin/env node

.description('Spawns a login shell with your current environment and additional Docker environment variables to use the Minikube\'s Docker daemon')
.option('-p [profile]', 'Specify a minikube profile, otherwise the default minikube profile will be used.')
.parse(process.argv);
const profile = program.P ? ` --profile ${program.P}` : '';
const command = `minikube docker-env${profile}`;
Promise.all([
// The Docker environment variables we need
execa.shell('minikube docker-env'),
execa.shell(command),
// The current shell's environment

@@ -20,0 +24,0 @@ execa.shell('env'),

5

bin/c-mk-hosts.js

@@ -12,2 +12,3 @@ #!/usr/bin/env node

program
.option('-p [profile]', 'Specify a minikube profile, otherwise the default minikube profile will be used.')
.parse(process.argv);

@@ -29,4 +30,6 @@

const url = (Array.isArray(local.url) ? local.url : [local.url]).map(uri => new Url(uri).host);
const profile = program.P ? ` -p ${program.P}` : '';
const command = `c mk ip -n${profile}`;
exec('c mk ip -n', { silent: true }, (err, ip) => {
exec(command, { silent: true }, (err, ip) => {

@@ -33,0 +36,0 @@ if (err) {

@@ -12,6 +12,10 @@ #!/usr/bin/env node

.option('-n', 'Do not print the trailing newline character.')
.option('-p [profile]', 'Specify a minikube profile, otherwise the default minikube profile will be used.')
.parse(process.argv);
exec('minikube ip', { silent: true }, (err, stdout) => {
const profile = program.P ? ` --profile ${program.P}` : '';
const command = `minikube ip${profile}`;
exec(command, { silent: true }, (err, stdout) => {
if (err) {

@@ -18,0 +22,0 @@ return reportError(err, false, true);

@@ -10,5 +10,10 @@ #!/usr/bin/env node

program
.option('-p [profile]', 'Specify a minikube profile, otherwise the default minikube profile will be used.')
.parse(process.argv);
exec('c mk stop');
exec('c mk start');
const profile = program.P ? ` -p ${program.P}` : '';
const stopCommand = `c mk stop${profile}`;
const startCommand = `c mk start${profile}`;
exec(stopCommand);
exec(startCommand);

@@ -10,4 +10,8 @@ #!/usr/bin/env node

program
.option('-p [profile]', 'Specify a minikube profile, otherwise the default minikube profile will be used.')
.parse(process.argv);
exec('minikube start --disk-size 64g --extra-config=apiserver.service-node-port-range=80-32767 --kubernetes-version v1.9.4 --memory=4096 --vm-driver=vmware');
const profile = program.P ? ` --profile ${program.P}` : '';
const command = `minikube start${profile}`;
exec(`${command} --disk-size 64g --extra-config=apiserver.service-node-port-range=80-32767 --kubernetes-version v1.9.4 --memory=4096 --vm-driver=vmware`);

@@ -10,4 +10,8 @@ #!/usr/bin/env node

program
.option('-p [profile]', 'Specify a minikube profile, otherwise the default minikube profile will be used.')
.parse(process.argv);
exec('minikube stop');
const profile = program.P ? ` --profile ${program.P}` : '';
const command = `minikube stop${profile}`;
exec(command);

@@ -33,7 +33,7 @@ #!/usr/bin/env node

// Default to importing all collections.
let collectionArg = `--nsInclude '${db.name}.*'`;
let collectionArg = `--nsInclude '${db.name}.*' --nsFrom '${db.name}.*' --nsTo '${localDb.name}.*'`;
// Otherwise, import a specific collection only.
if (typeof collection !== 'undefined') {
collectionArg = `--nsInclude '${db.name}.${collection}'`;
collectionArg = `--nsInclude '${db.name}.${collection}' --nsFrom '${db.name}.${collection}' --nsTo '${localDb.name}.${collection}'`;
}

@@ -40,0 +40,0 @@

@@ -5,2 +5,15 @@ # @idearium/cli

## v3.0.1 (28 May 2019)
- Bug fixes.
- Improved command.
### Bug fixes
- The `c mongo download`, `c mongo import` and `c mongo sync` now actually work when the database name is different between servers.
### Improvements
- Added support for a `-p` on all `c mk` commands to support Minikube profiles.
## v3.0.0 (7 May 2019)

@@ -7,0 +20,0 @@

{
"name": "@idearium/cli",
"version": "3.0.0",
"version": "3.0.1",
"description": "The Idearium cli, which makes working with our projects much easier.",

@@ -5,0 +5,0 @@ "main": "index.js",

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