@webos-tools/cli 3.1.0 → 3.1.2

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 (48) hide show
  1. package/CHANGELOG.md +16 -2
  2. package/README.md +21 -19
  3. package/bin/ares-config.js +6 -3
  4. package/bin/ares-device.js +2 -2
  5. package/bin/ares-log.js +6 -2
  6. package/bin/ares-pull.js +1 -1
  7. package/bin/ares-push.js +1 -1
  8. package/bin/ares-setup-device.js +8 -11
  9. package/bin/ares-shell.js +1 -1
  10. package/bin/ares.js +1 -1
  11. package/files/conf/ares.json +5 -5
  12. package/files/conf/novacom-devices.json +18 -1
  13. package/files/conf-base/env/sdk-apollo.json +8 -0
  14. package/files/conf-base/profile/config-apollo.json +29 -0
  15. package/files/conf-base/profile/config-ose.json +1 -1
  16. package/files/conf-base/template-conf/apollo-sdk-templates.json +51 -0
  17. package/files/help/ares-config.help +6 -1
  18. package/files/help/ares-device.help +15 -0
  19. package/files/help/ares-generate.help +27 -1
  20. package/files/help/ares-inspect.help +6 -0
  21. package/files/help/ares-install.help +5 -0
  22. package/files/help/ares-launch.help +5 -0
  23. package/files/help/ares-server.help +5 -0
  24. package/files/help/ares-setup-device.help +40 -0
  25. package/files/help/ares.help +5 -0
  26. package/files/schema/NovacomDevices.schema +2 -1
  27. package/files/templates/apollo-sdk-templates/appinfo/appinfo.json +10 -0
  28. package/files/templates/apollo-sdk-templates/bootplate-web/index.html +88 -0
  29. package/files/templates/apollo-sdk-templates/hosted-webapp/index.html +14 -0
  30. package/files/templates/apollo-sdk-templates/icon/icon.png +0 -0
  31. package/files/templates/apollo-sdk-templates/js-service/helloclient.js +31 -0
  32. package/files/templates/apollo-sdk-templates/js-service/helloworld_webos_service.js +188 -0
  33. package/files/templates/apollo-sdk-templates/serviceinfo/package.json +11 -0
  34. package/files/templates/apollo-sdk-templates/serviceinfo/services.json +8 -0
  35. package/lib/base/novacom.js +12 -1
  36. package/lib/base/setup-device.js +1 -1
  37. package/lib/device.js +1 -1
  38. package/lib/inspect.js +0 -1
  39. package/lib/package.js +3 -1
  40. package/lib/shell.js +1 -1
  41. package/npm-shrinkwrap.json +2 -2
  42. package/package.json +1 -1
  43. package/spec/jsSpecs/ares-config.spec.js +10 -0
  44. package/spec/jsSpecs/ares-generate.spec.js +4 -4
  45. package/spec/jsSpecs/ares-log.spec.js +1 -1
  46. package/spec/test_data/ares-generate.json +18 -1
  47. package/spec/test_data/ares.json +17 -0
  48. package/webos-tools-cli-3.1.2.tgz +0 -0
package/CHANGELOG.md CHANGED
@@ -1,12 +1,26 @@
1
+
2
+ ## 3.1.2 (August 07, 2024)
3
+ ### ares-config
4
+ * Added a new apollo profile for apollo platform.
5
+
6
+ ### common
7
+ * Integrated CLI commands for apollo platform.
8
+
9
+
10
+ ## 3.1.1 (July 15, 2024)
11
+ ### ares-inspect
12
+ * Fixed a bug that ares-inspect --service display error message on webOS TV 4.5 or lower
13
+
14
+
1
15
  ## 3.1.0 (July 12, 2024)
2
16
  ### ares-generate
3
- * Fixed a bug that can not generate without tample option
17
+ * Fixed a bug that can not generate without --template option
4
18
 
5
19
  ### ares-setup-device
6
20
  * Enhance usability of --add option.
7
21
  * Enhance emulator remove usability
8
22
  * Change default device information of TV profile (user: prisoner, port:9922)
9
- * Change devie name validation logic that accept all of charactors except "$" & "%"
23
+ * Change device name validation logic that accepts all characters except "$" & "%"
10
24
 
11
25
  ### common
12
26
  * Upgrade node modules: shelljs(v0.8.5), async(v3.2.5), ssh2(v1.15.0), tar(v6.2.0).
package/README.md CHANGED
@@ -8,6 +8,8 @@
8
8
 
9
9
  We are releasing a single CLI that supports both webOS OSE and webOS TV through this released CLI (v3.0.0). You can switch to CLI for OSE or TV by installing one CLI and changing only the profile. For more details, see [Profile Settings](#profile-settings).
10
10
 
11
+ From the released CLI (v3.1.2) we integrated CLI commands for webOS APOLLO. You can switch to CLI for APOLLO by changing only the profile to apollo.
12
+
11
13
  ## Installation
12
14
 
13
15
  > [!IMPORTANT]
@@ -36,7 +38,7 @@ $ npm install -g @webos-tools/cli
36
38
 
37
39
  ## Profile Settings
38
40
 
39
- You can change the profile to `tv` or `ose`. The default profile is `tv` (webOS TV).
41
+ You can change the profile to `tv`, `ose` or `apollo`. The default profile is `tv` (webOS TV).
40
42
 
41
43
  ``` shell
42
44
  $ ares-config --profile ose
@@ -58,23 +60,23 @@ If you want to use previous version of CLI, check the compatibility table for ea
58
60
 
59
61
  The following table shows a list supported commands. For more details, refer to user guides in [Documentation](#documentation).
60
62
 
61
- | Command | Description | OSE | TV |
62
- |-------------------|--------------------------------------------------------------------------------|:---:|:--:|
63
- | ares-config | Configures webOS CLI. | v | v |
64
- | ares | Displays the help information for ares commands. | v | v |
65
- | ares-generate | Creates a webOS app or service from templates. | v | v |
66
- | ares-package | Packages the app or services into a package file. | v | v |
67
- | ares-setup-device | Manages the target devices. | v | v |
68
- | ares-novacom | Command Line Tool to control the device. | | v |
69
- | ares-install | Installs the app or service on the target device. | v | v |
70
- | ares-launch | Launches or terminates the app. | v | v |
71
- | ares-inspect | Enables Web Inspector or Node's Inspector for debugging web app or JS service. | v | v |
72
- | ares-server | Runs the Web server for testing local app file. | v | v |
73
- | ares-shell | Executes shell commands in the target device. | v | |
74
- | ares-push | Pushes file(s) from a host machine to a target device. | v | |
75
- | ares-pull | Pulls file(s) from a target device to a host machine. | v | |
76
- | ares-device | Displays the device information. | v | v |
77
- | ares-log | Shows or saves logs of webOS apps and services. | v | |
63
+ | Command | Description | OSE | TV | APOLLO |
64
+ |-------------------|--------------------------------------------------------------------------------|:---:|:--:|:------:|
65
+ | ares-config | Configures webOS CLI. | v | v | v |
66
+ | ares | Displays the help information for ares commands. | v | v | v |
67
+ | ares-generate | Creates a webOS app or service from templates. | v | v | v |
68
+ | ares-package | Packages the app or services into a package file. | v | v | v |
69
+ | ares-setup-device | Manages the target devices. | v | v | v |
70
+ | ares-novacom | Command Line Tool to control the device. | | v | |
71
+ | ares-install | Installs the app or service on the target device. | v | v | v |
72
+ | ares-launch | Launches or terminates the app. | v | v | v |
73
+ | ares-inspect | Enables Web Inspector or Node's Inspector for debugging web app or JS service. | v | v | v |
74
+ | ares-server | Runs the Web server for testing local app file. | v | v | v |
75
+ | ares-shell | Executes shell commands in the target device. | v | | v |
76
+ | ares-push | Pushes file(s) from a host machine to a target device. | v | | v |
77
+ | ares-pull | Pulls file(s) from a target device to a host machine. | v | | v |
78
+ | ares-device | Displays the device information. | v | v | v |
79
+ | ares-log | Shows or saves logs of webOS apps and services. | v | | v |
78
80
 
79
81
  ## Documentation
80
82
 
@@ -215,4 +217,4 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
215
217
  See the License for the specific language governing permissions and
216
218
  limitations under the License.
217
219
 
218
- SPDX-License-Identifier: Apache-2.0
220
+ SPDX-License-Identifier: Apache-2.0
@@ -78,17 +78,20 @@ const options = {
78
78
 
79
79
  const configFiles = {
80
80
  "ose": "files/conf-base/profile/config-ose.json",
81
- "tv": "files/conf-base/profile/config-tv.json"
81
+ "tv": "files/conf-base/profile/config-tv.json",
82
+ "apollo": "files/conf-base/profile/config-apollo.json"
82
83
  };
83
84
 
84
85
  const envFiles = {
85
86
  "ose": "files/conf-base/env/sdk-ose.json",
86
- "tv": "files/conf-base/env/sdk-tv.json"
87
+ "tv": "files/conf-base/env/sdk-tv.json",
88
+ "apollo": "files/conf-base/env/sdk-apollo.json"
87
89
  };
88
90
 
89
91
  const templateFiles = {
90
92
  "ose": "files/conf-base/template-conf/ose-templates.json",
91
93
  "tv": "files/conf-base/template-conf/tv-sdk-templates.json",
94
+ "apollo": "files/conf-base/template-conf/apollo-sdk-templates.json"
92
95
  };
93
96
 
94
97
  const queryPaths = {
@@ -196,4 +199,4 @@ function finish(err, value) {
196
199
  }
197
200
  cliControl.end();
198
201
  }
199
- }
202
+ }
@@ -141,7 +141,7 @@ function deviceList() {
141
141
  }
142
142
 
143
143
  function getDeviceInfo() {
144
- if (curConfigData.profile === "ose") {
144
+ if (curConfigData.profile === "ose"|| curConfigData.profile === "apollo") {
145
145
  deviceLib.systemInfo(options, finish);
146
146
  } else if (curConfigData.profile === "tv") {
147
147
  deviceLib.tvSystemInfo(options, finish);
@@ -188,7 +188,7 @@ function getResourceMonitor() {
188
188
  }
189
189
 
190
190
  function captureScreen() {
191
- if (curConfigData.profile !== "ose") {
191
+ if ( !["ose", "apollo"].includes(curConfigData.profile)) {
192
192
  return finish(errHndl.getErrMsg("NOT_SUPPORT_OPTION", curConfigData.profile));
193
193
  }
194
194
  deviceLib.captureScreen(options, finish);
package/bin/ares-log.js CHANGED
@@ -102,7 +102,7 @@ log.level = argv.level || 'warn';
102
102
  log.verbose("argv", argv);
103
103
 
104
104
  const curConfigData = appdata.getConfig(true);
105
- if (curConfigData.profile !== "ose") {
105
+ if (!["ose","apollo"].includes(curConfigData.profile)) {
106
106
  return finish(errHndl.getErrMsg("NOT_SUPPORT_COMMOND", curConfigData.profile));
107
107
  }
108
108
 
@@ -194,6 +194,10 @@ function checkCurrentDaemon() {
194
194
  function switchDaemon() {
195
195
  log.info("switchDaemon()");
196
196
 
197
+ if (curConfigData.profile === "apollo") {
198
+ return finish(errHndl.getErrMsg("NOT_SUPPORT_OPTION", curConfigData.profile));
199
+ }
200
+
197
201
  if (argv['switch-daemon'] !== "journald" && argv['switch-daemon'] !== "pmlogd") {
198
202
  return finish(errHndl.getErrMsg("NOT_EXIST_LOGDAEMON"));
199
203
  }
@@ -252,4 +256,4 @@ function finish(err, value) {
252
256
  }
253
257
  cliControl.end();
254
258
  }
255
- }
259
+ }
package/bin/ares-pull.js CHANGED
@@ -75,7 +75,7 @@ if (argv.level) {
75
75
  }
76
76
 
77
77
  const curConfigData = appdata.getConfig(true);
78
- if (curConfigData.profile !== "ose") {
78
+ if (curConfigData.profile !== "ose" && curConfigData.profile !== "apollo") {
79
79
  return finish(errHndl.getErrMsg("NOT_SUPPORT_COMMOND", curConfigData.profile));
80
80
  }
81
81
 
package/bin/ares-push.js CHANGED
@@ -75,7 +75,7 @@ if (argv.level) {
75
75
  }
76
76
 
77
77
  const curConfigData = appdata.getConfig(true);
78
- if (curConfigData.profile !== "ose") {
78
+ if (!["ose", "apollo"].includes(curConfigData.profile)) {
79
79
  return finish(errHndl.getErrMsg("NOT_SUPPORT_COMMOND", curConfigData.profile));
80
80
  }
81
81
 
@@ -186,7 +186,7 @@ function _queryAddRemove(ssdpDevices, next) {
186
186
  if (ssdpDevice) {
187
187
  if (ssdpDevice.op === 'modify') return inqChoices;
188
188
  else return ['add'];
189
- }
189
+ }
190
190
  if (deviceNames.length > 1) return totChoices;
191
191
  // deveice list has emulator only > unsupported remove option
192
192
  return inqChoices.concat(dfChoices);
@@ -229,7 +229,7 @@ function _queryAddRemove(ssdpDevices, next) {
229
229
  when: function(answers) {
230
230
  return (["remove"].indexOf(answers.op) !== -1 && !ssdpDevice);
231
231
  }
232
- },{
232
+ }, {
233
233
  type: "list",
234
234
  name: "device_name",
235
235
  message: "Select a device",
@@ -261,7 +261,7 @@ function _queryDeviceInfo(selDevice, next) {
261
261
  const deviceName = selDevice.name,
262
262
  resolver = this.resolver || (this.resolver = new novacom.Resolver()),
263
263
  defaultDeviceInfo = appdata.getConfig(true).defaultDeviceInfo;
264
-
264
+
265
265
  questions = [{
266
266
  type: "input",
267
267
  name: "ip",
@@ -327,7 +327,7 @@ function _queryDeviceInfo(selDevice, next) {
327
327
  return idx;
328
328
  },
329
329
  when: function(answers) {
330
- return _needInq(mode)(inqChoices) && answers.user === 'root';
330
+ return _needInq(mode)(inqChoices) && answers.user === "root";
331
331
  }
332
332
  }, {
333
333
  type: "password",
@@ -346,8 +346,7 @@ function _queryDeviceInfo(selDevice, next) {
346
346
  when: function(answers) {
347
347
  return _needInq(mode)(inqChoices) && (answers.auth_type === "ssh key");
348
348
  }
349
- },
350
- {
349
+ }, {
351
350
  type: "confirm",
352
351
  name: "default",
353
352
  message: "Set default ?",
@@ -381,15 +380,13 @@ function _queryDeviceInfo(selDevice, next) {
381
380
  default: answers.default
382
381
  };
383
382
 
384
-
385
- if (answers.
386
- user !== 'prisoner' && ["add", "modify"].includes(mode)) {
383
+ if (answers.user !== 'prisoner' && ["add", "modify"].includes(mode)) {
387
384
  if (answers.auth_type && answers.auth_type === "password") {
388
385
  inDevice.password = answers.password;
389
386
  inDevice.privateKey = "@DELETE@";
390
387
  inDevice.passphrase = "@DELETE@";
391
388
  inDevice.privateKeyName = "@DELETE@";
392
- } else if ((answers.auth_type && answers.auth_type === "ssh key") || answers.user === "developer") {
389
+ } else if ((answers.auth_type && answers.auth_type === "ssh key") || answers.user === "developer") {
393
390
  inDevice.password = "@DELETE@";
394
391
  inDevice.privateKey = {
395
392
  "openSsh": answers.ssh_key || "webos_emul"
@@ -416,7 +413,7 @@ function _queryDeviceInfo(selDevice, next) {
416
413
  setupDevice.showDeviceList.bind(this),
417
414
  ], function(err, results) {
418
415
  if (err) {
419
- return next(err,);
416
+ return next(err);
420
417
  }
421
418
  if(results[2] && results[2].msg){
422
419
  console.log(results[2].msg);
package/bin/ares-shell.js CHANGED
@@ -54,7 +54,7 @@ log.level = argv.level || 'warn';
54
54
  log.verbose("argv", argv);
55
55
 
56
56
  const curConfigData = appdata.getConfig(true);
57
- if (curConfigData.profile !== "ose") {
57
+ if (!["ose", "apollo"].includes(curConfigData.profile)) {
58
58
  return finish(errHndl.getErrMsg("NOT_SUPPORT_COMMOND", curConfigData.profile));
59
59
  }
60
60
 
package/bin/ares.js CHANGED
@@ -119,7 +119,7 @@ function display (next) {
119
119
  for (const arg in argv) {
120
120
  if (Object.hasOwnProperty.call(commandsList, 'ares-'+ arg) && fs.existsSync(path.join(__dirname, 'ares-'+ arg + '.js'))) {
121
121
  if (commandsList['ares-'+ arg].profile && !commandsList['ares-'+ arg].profile.includes(profile)) {
122
- return next(errHndl.getErrMsg("NOT_SUPPORT_COMMOND", profile));
122
+ return next(errHndl.getErrMsg("NOT_SUPPORT_COMMOND", profile));
123
123
  } else {
124
124
  help.display('ares-'+arg, appdata.getConfig(true).profile);
125
125
  found = true;
@@ -18,7 +18,7 @@
18
18
  "description": "Launch or close the app"
19
19
  },
20
20
  "ares-log": {
21
- "profile": ["ose"],
21
+ "profile": ["ose", "apollo"],
22
22
  "description": "Show or save logs of webOS apps and services"
23
23
  },
24
24
  "ares-novacom": {
@@ -29,11 +29,11 @@
29
29
  "description": "Create or analyze a package containing a webOS app or service"
30
30
  },
31
31
  "ares-pull": {
32
- "profile": ["ose"],
32
+ "profile": ["ose","apollo"],
33
33
  "description": "Pull the file from the device"
34
34
  },
35
35
  "ares-push": {
36
- "profile": ["ose"],
36
+ "profile": ["ose","apollo"],
37
37
  "description": "Push the file to the device"
38
38
  },
39
39
  "ares-server": {
@@ -43,7 +43,7 @@
43
43
  "description": "Add or modify the information of the devices to use"
44
44
  },
45
45
  "ares-shell": {
46
- "profile": ["ose"],
46
+ "profile": ["ose","apollo"],
47
47
  "description": "Open a device terminal or run a command"
48
48
  }
49
- }
49
+ }
@@ -31,5 +31,22 @@
31
31
  "files":"sftp",
32
32
  "noPortForwarding":false,
33
33
  "indelible": true
34
+ },
35
+ {
36
+ "order":"0",
37
+ "default": true,
38
+ "profile": "apollo",
39
+ "name": "emulator",
40
+ "type": "starfish",
41
+ "description": "LG webOS Apollo Emulator",
42
+ "host": "127.0.0.1",
43
+ "port": 6622,
44
+ "username": "developer",
45
+ "privateKey": {
46
+ "openSsh": "webos_emul"
47
+ },
48
+ "files":"sftp",
49
+ "noPortForwarding":false,
50
+ "indelible": true
34
51
  }
35
- ]
52
+ ]
@@ -0,0 +1,8 @@
1
+ {
2
+ "SDKPATH_ENV_NAME": "LG_WEBOS_APOLLO_SDK_HOME",
3
+ "BROWSER_PATH_IN_SDK": {
4
+ "win32": "/IDE/chromium/chrome.exe",
5
+ "darwin": "/IDE/chromium/Chromium.app",
6
+ "linux": "/IDE/chromium/chrome"
7
+ }
8
+ }
@@ -0,0 +1,29 @@
1
+ {
2
+ "profile": "apollo",
3
+ "defaultAppInfo": {
4
+ "id": "com.yourdomain.app",
5
+ "type": "web",
6
+ "title": "new app",
7
+ "version": "1.0.0",
8
+ "main": {
9
+ "web": "index.html",
10
+ "native": "executable"
11
+ }
12
+ },
13
+ "defaultDeviceInfo": {
14
+ "ipAddress": "127.0.0.1",
15
+ "port": "22",
16
+ "user": "root",
17
+ "description": "new device description",
18
+ "files": "stream",
19
+ "default": false
20
+ },
21
+ "logFilePath": "/media/developer/log/devlog",
22
+ "install": {
23
+ "tempDirForIpk": "/media/developer/temp",
24
+ "changeTempDir": true,
25
+ "removeIpkAfterInst": true
26
+ },
27
+ "dataDir":".webos/apollo",
28
+ "logDaemon": "journald"
29
+ }
@@ -10,7 +10,7 @@
10
10
  "native": "executable"
11
11
  }
12
12
  },
13
- "defaultDeviceInfo":{
13
+ "defaultDeviceInfo": {
14
14
  "ipAddress": "127.0.0.1",
15
15
  "port": "22",
16
16
  "user": "root",
@@ -0,0 +1,51 @@
1
+ {
2
+ "webapp": {
3
+ "type": "webapp",
4
+ "path": "$cli-root/files/templates/apollo-sdk-templates/bootplate-web",
5
+ "description": "web app for Apollo",
6
+ "metadata": {
7
+ "id": "webappinfo"
8
+ },
9
+ "deps": [
10
+ "icon"
11
+ ],
12
+ "default": true
13
+ },
14
+ "hosted_webapp": {
15
+ "type": "webapp",
16
+ "path": "$cli-root/files/templates/apollo-sdk-templates/hosted-webapp",
17
+ "description": "hosted web app for Apollo",
18
+ "metadata": {
19
+ "id": "webappinfo"
20
+ },
21
+ "deps": [
22
+ "icon"
23
+ ]
24
+ },
25
+ "webappinfo": {
26
+ "type": "webappinfo",
27
+ "path": "$cli-root/files/templates/apollo-sdk-templates/appinfo/appinfo.json",
28
+ "description": "appinfo.json for web app"
29
+ },
30
+ "js_service": {
31
+ "type": "jsservice",
32
+ "path": "$cli-root/files/templates/apollo-sdk-templates/js-service",
33
+ "description": "js service for Apollo",
34
+ "metadata": {
35
+ "id": "jsserviceinfo"
36
+ }
37
+ },
38
+ "jsserviceinfo": {
39
+ "type": "jsserviceinfo",
40
+ "path": [
41
+ "$cli-root/files/templates/apollo-sdk-templates/serviceinfo/services.json",
42
+ "$cli-root/files/templates/apollo-sdk-templates/serviceinfo/package.json"
43
+ ],
44
+ "description": "services.json, package.json for JS service"
45
+ },
46
+ "icon": {
47
+ "type": "icon",
48
+ "path": "$cli-root/files/templates/apollo-sdk-templates/icon",
49
+ "description": "app icon files [80x80]"
50
+ }
51
+ }
@@ -13,11 +13,15 @@
13
13
  "This command used for configuring the webOS devices profile setting to work with CLI.",
14
14
  "",
15
15
  "DEVICE_PROFILE is the profile of a target device.",
16
- "This parameter can be \"ose\" and \"tv\". \"tv\" is default."
16
+ "This parameter can be \"ose\", \"tv\" and \"apollo\". \"tv\" is default."
17
17
  ],
18
18
  "ose" : [
19
19
  "",
20
20
  "LEVEL is priority of logs. (e.g., silly, verbose, info, warn, error)"
21
+ ],
22
+ "apollo" : [
23
+ "",
24
+ "LEVEL is priority of logs. (e.g., silly, verbose, info, warn, error)"
21
25
  ]
22
26
  }
23
27
  ],
@@ -33,6 +37,7 @@
33
37
  "cmdOpt":"option",
34
38
  "default" : ["profile", "profile-details", "help", "version", "verbose"],
35
39
  "ose" : ["level"],
40
+ "apollo" : ["level"],
36
41
  "profile" : "-p, --profile <DEVICE_PROFILE> @TAB@ Specify a device profile to configure for CLI",
37
42
  "profile-details" : "-c, --profile-details @TAB@ Display current configured profile",
38
43
  "help" : "-h, --help @TAB@ Display this help",
@@ -26,12 +26,22 @@
26
26
  "The file format can be \".png\", \".jpg\" and \".bmp\". \".png\" is default.",
27
27
  "",
28
28
  "LEVEL is priority of logs. (e.g., silly, verbose, info, warn, error)"
29
+ ],
30
+ "apollo" : [
31
+ "",
32
+ "And This command supports screen capture.",
33
+ "",
34
+ "CAPTURE_FILE is file name or file path of capture file.",
35
+ "The file format can be \".png\", \".jpg\" and \".bmp\". \".png\" is default.",
36
+ "",
37
+ "LEVEL is priority of logs. (e.g., silly, verbose, info, warn, error)"
29
38
  ]
30
39
  },
31
40
  "options" : {
32
41
  "cmdOpt":"option",
33
42
  "default" : ["system", "resource", "list", "id-filter", "interval", "save"],
34
43
  "ose" : ["capture", "display", "device", "device-list", "help", "version", "verbose", "level"],
44
+ "apollo" : ["capture", "display", "device", "device-list", "help", "version", "verbose", "level"],
35
45
  "tv" : ["device", "device-list", "help", "version", "verbose"],
36
46
  "system" : "-i, --system-info @TAB@ Display the system information",
37
47
  "session" : "-se, --session-info @TAB@ Display the session information",
@@ -89,6 +99,11 @@
89
99
  "# Capture the screen of display 1 as screen.png",
90
100
  "ares-device -c screen.png -dp 1 -d DEVICE",
91
101
  ""
102
+ ],
103
+ "apollo" : [
104
+ "# Capture the screen of display as screen.png",
105
+ "ares-device -c screen.png -d DEVICE",
106
+ ""
92
107
  ]
93
108
  }
94
109
  }
@@ -23,12 +23,17 @@
23
23
  "ose" : [
24
24
  "",
25
25
  "LEVEL is priority of logs. (e.g., silly, verbose, info, warn, error)"
26
+ ],
27
+ "apollo" : [
28
+ "",
29
+ "LEVEL is priority of logs. (e.g., silly, verbose, info, warn, error)"
26
30
  ]
27
31
  }
28
32
  ],
29
33
  "examples" : [
30
34
  {
31
- "default" : [
35
+ "default":[],
36
+ "ose" : [
32
37
  "# Create a webOS app in ~/project/app and set the id, version, title",
33
38
  "ares-generate -t webapp -p \"{'id':'com.domain.app', 'version':'1.0.0', 'title':'First App'}\" ~/projects/app",
34
39
  " Or",
@@ -37,6 +42,26 @@
37
42
  "# Create a webOS service named 'com.domain.app.service'",
38
43
  "ares-generate -t js_service -s \"com.domain.app.service\" ~/projects/service",
39
44
  ""
45
+ ],
46
+ "apollo" : [
47
+ "# Create a webOS app in ~/project/app and set the id, version, title",
48
+ "ares-generate -t webapp -p \"{'id':'com.domain.app', 'version':'1.0.0', 'title':'First App'}\" ~/projects/app",
49
+ " Or",
50
+ "ares-generate -t webapp -p \"id=com.domain.app\" -p \"version=1.0.0\" -p \"title=First App\" ~/projects/app",
51
+ "",
52
+ "# Create a webOS service named 'com.domain.app.service'",
53
+ "ares-generate -t js_service -s \"com.domain.app.service\" ~/projects/service",
54
+ ""
55
+ ],
56
+ "tv" : [
57
+ "# Create a webOS app in ~/project/app and set the id, version, title",
58
+ "ares-generate -t basic -p \"{'id':'com.domain.app', 'version':'1.0.0', 'title':'First App'}\" ~/projects/app",
59
+ " Or",
60
+ "ares-generate -t basic -p \"id=com.domain.app\" -p \"version=1.0.0\" -p \"title=First App\" ~/projects/app",
61
+ "",
62
+ "# Create a webOS service named 'com.domain.app.service'",
63
+ "ares-generate -t js_service -s \"com.domain.app.service\" ~/projects/service",
64
+ ""
40
65
  ]
41
66
  }
42
67
  ],
@@ -44,6 +69,7 @@
44
69
  "cmdOpt":"option",
45
70
  "default" : ["template", "list", "property", "servicename", "overwrite", "help", "version", "verbose"],
46
71
  "ose" : ["level"],
72
+ "apollo" : ["level"],
47
73
  "template" : [
48
74
  "-t, --template <TEMPLATE> @TAB@ Use the template named TEMPLATE"
49
75
  ],
@@ -4,6 +4,7 @@
4
4
  "notab":["examples", "extraexample"],
5
5
  "name" : {
6
6
  "ose" : "ares-inspect - Enable Web Inspector or Node's Inspector for webOS web app or service",
7
+ "apollo" : "ares-inspect - Enable Web Inspector or Node's Inspector for webOS web app or service",
7
8
  "tv" : "ares-inspect - Provide URL to use Remote Web Inspector or Node Inspector"
8
9
  },
9
10
  "synopsis" : {
@@ -23,6 +24,10 @@
23
24
  "ose" : [
24
25
  "",
25
26
  "LEVEL is priority of logs. (e.g., silly, verbose, info, warn, error)"
27
+ ],
28
+ "apollo" : [
29
+ "",
30
+ "LEVEL is priority of logs. (e.g., silly, verbose, info, warn, error)"
26
31
  ]
27
32
  }
28
33
  ],
@@ -30,6 +35,7 @@
30
35
  "cmdOpt":"option",
31
36
  "default" : ["open", "device", "device-list", "help", "version", "verbose"],
32
37
  "ose" : ["display", "level"],
38
+ "apollo" : ["display", "level"],
33
39
  "open" : "-o, --open @TAB@ Open url with a web browser",
34
40
  "device" : [
35
41
  "-d, --device <DEVICE> @TAB@ Specify DEVICE to use",
@@ -19,6 +19,10 @@
19
19
  "ose" : [
20
20
  "",
21
21
  "LEVEL is priority of logs. (e.g., silly, verbose, info, warn, error)"
22
+ ],
23
+ "apollo" : [
24
+ "",
25
+ "LEVEL is priority of logs. (e.g., silly, verbose, info, warn, error)"
22
26
  ]
23
27
  }
24
28
  ],
@@ -40,6 +44,7 @@
40
44
  "cmdOpt":"option",
41
45
  "default" : ["device", "device-list", "list", "listfull", "type", "help", "version", "verbose"],
42
46
  "ose" : ["level"],
47
+ "apollo" : ["level"],
43
48
  "device" : [
44
49
  "-d, --device <DEVICE> @TAB@ Specify DEVICE to use",
45
50
  "@TAB@ If not specified, set to default device"
@@ -30,6 +30,10 @@
30
30
  "",
31
31
  "LEVEL is priority of logs. (e.g., silly, verbose, info, warn, error)"
32
32
  ],
33
+ "apollo" : [
34
+ "",
35
+ "LEVEL is priority of logs. (e.g., silly, verbose, info, warn, error)"
36
+ ],
33
37
  "tv" : [
34
38
  "",
35
39
  "If 'hosted' option does not work with network connection error,",
@@ -41,6 +45,7 @@
41
45
  "cmdOpt":"option",
42
46
  "default" : ["running", "close", "params"],
43
47
  "ose" : ["hosted", "display", "device", "device-list", "help", "version", "verbose", "level"],
48
+ "apollo" : ["hosted", "device", "device-list", "help", "version", "verbose", "level"],
44
49
  "tv" : ["device", "device-list", "help", "version", "verbose"],
45
50
  "device" : [
46
51
  "-d, --device <DEVICE> @TAB@ Specify DEVICE to use",
@@ -10,6 +10,7 @@
10
10
  "cmdOpt":"option",
11
11
  "default" : ["port", "open","help", "version", "verbose"],
12
12
  "ose" : ["level"],
13
+ "apollo" : ["level"],
13
14
  "port" : "-p, --port <PORT> @TAB@ Specify port to use [default:random]",
14
15
  "open" : "-o, --open @TAB@ Open localhost url with a web browser",
15
16
  "help" : "-h, --help @TAB@ Display this help",
@@ -25,6 +26,10 @@
25
26
  "ose" : [
26
27
  "",
27
28
  "LEVEL is priority of logs. (e.g., silly, verbose, info, warn, error)"
29
+ ],
30
+ "apollo" : [
31
+ "",
32
+ "LEVEL is priority of logs. (e.g., silly, verbose, info, warn, error)"
28
33
  ]
29
34
  }
30
35
  ],