@gazzehamine/armada-watch-agent 1.4.7 → 1.4.8
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 +5 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -21,6 +21,11 @@ try {
|
|
|
21
21
|
catch (error) {
|
|
22
22
|
console.warn("Could not read agent version from package.json");
|
|
23
23
|
}
|
|
24
|
+
// Handle --version flag
|
|
25
|
+
if (process.argv.includes("--version") || process.argv.includes("-v")) {
|
|
26
|
+
console.log(AGENT_VERSION);
|
|
27
|
+
process.exit(0);
|
|
28
|
+
}
|
|
24
29
|
const SERVER_URL = process.env.SERVER_URL || "http://localhost:4000";
|
|
25
30
|
const INSTANCE_NAME = process.env.INSTANCE_NAME || os_1.default.hostname();
|
|
26
31
|
const REGION = process.env.REGION || "unknown";
|
package/package.json
CHANGED