@sonnechasser/ntrp 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +8 -0
- package/dist/index.js.map +1 -1
- package/package.json +3 -1
package/dist/index.js
CHANGED
|
@@ -31086,6 +31086,14 @@ init_types2();
|
|
|
31086
31086
|
init_version();
|
|
31087
31087
|
import chalk74 from "chalk";
|
|
31088
31088
|
var VERSION = getInstalledVersion();
|
|
31089
|
+
function exitIfVersionFlag(argv) {
|
|
31090
|
+
const rest = argv.slice(2).filter((a) => a === "--version" || a === "-v");
|
|
31091
|
+
if (rest.length === 1 && argv.slice(2).every((a) => a === "--version" || a === "-v" || a === "--no-color")) {
|
|
31092
|
+
console.log(VERSION);
|
|
31093
|
+
process.exit(0);
|
|
31094
|
+
}
|
|
31095
|
+
}
|
|
31096
|
+
exitIfVersionFlag(process.argv);
|
|
31089
31097
|
var UNGATED = UNGATED_COMMANDS;
|
|
31090
31098
|
var DB_COMMANDS = /* @__PURE__ */ new Set(["actions", "ask", "backmeup", "demo", "diagnose", "export", "handoff", "ingest", "metrics", "new", "playbook", "publish", "report", "reset", "segment", "session", "status", "strategy"]);
|
|
31091
31099
|
function firstToken(input) {
|