pushnetgo-cli 1.0.5 → 1.0.7

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.
@@ -3,13 +3,12 @@
3
3
  const { Command } = require('commander');
4
4
  const program = new Command();
5
5
  const API_URL = 'https://us-central1-flutter-ai-playground-f8e3b.cloudfunctions.net/unifiedGatewayApi';
6
+ const VERSION = require('../package.json').version;
6
7
 
7
8
  program
8
9
  .name('pushnetgo-cli')
9
- .description(`PushNetGo App CLI — sync music, validate tokens
10
- HTTP API: ${API_URL}
11
- Auth: x-api-key: pushnetgo-xxx`)
12
- .version(require('../package.json').version);
10
+ .description(`PushNetGo App CLI — sync music, validate tokens\n HTTP API: ${API_URL}\n Auth: x-api-key: pushnetgo-xxx`)
11
+ .version(VERSION);
13
12
 
14
13
  program
15
14
  .command('sync-music')
@@ -44,4 +43,23 @@ program
44
43
  console.log(API_URL);
45
44
  });
46
45
 
46
+ if (process.argv.length <= 2) {
47
+ console.log(`pushnetgo-cli v${VERSION}
48
+
49
+ npm install -g pushnetgo-cli
50
+ export MYAPP_API_KEY="pushnetgo-xxx"
51
+
52
+ Commands:
53
+ pushnetgo-cli token check — validate API key
54
+ pushnetgo-cli sync-music --url URL — upload music from URL
55
+ pushnetgo-cli api-url — show HTTP API endpoint
56
+ pushnetgo-cli --help — all commands and options
57
+
58
+ HTTP endpoint: ${API_URL}
59
+ Auth: x-api-key: pushnetgo-xxx
60
+
61
+ No Firebase config needed. Works on any machine.`);
62
+ process.exit(0);
63
+ }
64
+
47
65
  program.parse(process.argv);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pushnetgo-cli",
3
- "version": "1.0.5",
3
+ "version": "1.0.7",
4
4
  "description": "PushNetGo App CLI — HTTP API: https://us-central1-flutter-ai-playground-f8e3b.cloudfunctions.net/unifiedGatewayApi",
5
5
  "bin": {
6
6
  "pushnetgo-cli": "./bin/pushnetgo-cli.js"