logmon-cli 1.0.12 → 1.0.13

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.
Files changed (2) hide show
  1. package/index.js +7 -0
  2. package/package.json +3 -2
package/index.js CHANGED
@@ -40,6 +40,13 @@ function askQuestion(query) {
40
40
  }
41
41
 
42
42
  async function run() {
43
+ // 버전 확인 파라미터 체크
44
+ const isVersion = process.argv.includes('--version') || process.argv.includes('-v') || process.argv.includes('version');
45
+ if (isVersion) {
46
+ console.log(`logmon v${pkg.version}`);
47
+ process.exit(0);
48
+ }
49
+
43
50
  let apiKey = "default_dev_key";
44
51
  let backendUrl = "http://localhost:3008/api/logmon";
45
52
 
package/package.json CHANGED
@@ -1,10 +1,11 @@
1
1
  {
2
2
  "name": "logmon-cli",
3
- "version": "1.0.12",
3
+ "version": "1.0.13",
4
4
  "description": "LogMon Agent Auto Installer",
5
5
  "main": "index.js",
6
6
  "bin": {
7
- "logmon-cli": "index.js"
7
+ "logmon-cli": "index.js",
8
+ "logmon": "index.js"
8
9
  },
9
10
  "files": [
10
11
  "index.js"