qcobjects-cli
Advanced tools
Comparing version 2.3.2 to 2.3.5
@@ -473,3 +473,3 @@ /** | ||
switchCommander.program | ||
.version(package_config.version); | ||
.version(global.__get_version__()); | ||
switchCommander.program | ||
@@ -545,2 +545,3 @@ .command("create <appname>") | ||
}); | ||
switchCommander.program.on("command:*", function () { | ||
@@ -547,0 +548,0 @@ console.error("Invalid command: %s\nSee --help for a list of available commands.", switchCommander.program.args.join(" ")); |
@@ -45,2 +45,13 @@ /** | ||
global.__get_version__ = function (){ | ||
const path = require("path"); | ||
const absolutePath = path.resolve( __dirname, "./" ); | ||
const package_config = require(absolutePath+"/package.json"); | ||
const qcobjects_pkg_config = require("qcobjects/package.json"); | ||
const qcobjects_sdk_pkg_config = require("qcobjects-sdk/package.json"); | ||
return "QCObjects: v"+qcobjects_pkg_config.version+", SDK: v"+qcobjects_sdk_pkg_config.version+", CLI: v"+package_config.version; | ||
}; | ||
let setDevMode = function (devmode){ | ||
@@ -47,0 +58,0 @@ if (typeof devmode !== "undefined"){ |
{ | ||
"name": "qcobjects-cli", | ||
"version": "2.3.2", | ||
"version": "2.3.5", | ||
"description": "qcobjects cli command line tool", | ||
@@ -5,0 +5,0 @@ "main": "qcobjects-cli.js", |
@@ -40,2 +40,5 @@ #!/usr/bin/env node | ||
require("qcobjects"); | ||
require(absolutePath+"/org.quickcorp.qcobjects.defaultsettings.js"); | ||
logger.debugEnabled = false; | ||
@@ -42,0 +45,0 @@ const welcometo = "Welcome to \n"; |
@@ -41,6 +41,10 @@ #!/usr/bin/env node | ||
const package_config = require(absolutePath+"/package.json"); | ||
const vm = require("vm"); | ||
require("qcobjects"); | ||
require(absolutePath+"/org.quickcorp.qcobjects.defaultsettings.js"); | ||
const package_config = require(absolutePath+"/package.json"); | ||
const qcobjects_pkg_config = require("qcobjects/package.json"); | ||
@@ -85,6 +89,8 @@ const qcobjects_sdk_pkg_config = require("qcobjects-sdk/package.json"); | ||
let qcobjects_version = global.__get_version__(); | ||
const rl = readline.createInterface({ | ||
input: process.stdin, | ||
output: process.stdout, | ||
prompt: "QCObjects v"+qcobjects_pkg_config.version+", SDK: v"+qcobjects_sdk_pkg_config.version+", CLI: v"+package_config.version+"> " | ||
prompt: qcobjects_version + " >" | ||
}); | ||
@@ -91,0 +97,0 @@ |
Sorry, the diff of this file is not supported yet
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
162174
3783
49