Comparing version 1.0.7 to 1.0.8
@@ -10,3 +10,3 @@ #!/usr/bin/env node | ||
.completion('completion', 'Generate completion script for your shell') | ||
.usage('$0 <cmd> [args] [machine-id]\nex: $0 ls [machine-id]\nex: $0 files [machine-id]\nex: $0 status [machine-id]') | ||
.usage('$0 <cmd> [machine-id/name] [args]\n ex: $0 ls\n ex: $0 files [machine-id]\n ex: $0 status [machine-id]') | ||
.help('h') | ||
@@ -36,2 +36,3 @@ .alias('h', 'help') | ||
if (machine) { | ||
machine = String(machine); | ||
if (machines) { | ||
@@ -42,4 +43,5 @@ let m; | ||
if (_m[key].toLowerCase().indexOf(machine.toLowerCase()) > -1) { | ||
if (m) { | ||
if (!Array.isArray(m) && m) { | ||
m = [m]; | ||
m.push(_m.id); | ||
} else { | ||
@@ -94,11 +96,2 @@ if (Array.isArray(m)) { | ||
if (cmd === 'files') { | ||
if (!args.id) { | ||
console.error(`Please pass machine id`); | ||
process.exit(1); | ||
} | ||
} | ||
//console.log(cmd, machine, args); | ||
if (!commands[cmd]) { | ||
@@ -105,0 +98,0 @@ console.log(`Could not find command: ${cmd}`); |
{ | ||
"name": "bambu-cli", | ||
"version": "1.0.7", | ||
"version": "1.0.8", | ||
"description": "Bambulabs CLI for printers", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
695475
993