cyber-elx 1.1.4 → 1.1.5

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/package.json +1 -1
  2. package/src/index.js +8 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cyber-elx",
3
- "version": "1.1.4",
3
+ "version": "1.1.5",
4
4
  "description": "CyberOcean CLI tool to upload/download ELX custom pages",
5
5
  "main": "src/index.js",
6
6
  "bin": {
package/src/index.js CHANGED
@@ -17,6 +17,14 @@ program
17
17
  program
18
18
  .version(packageJson.version, '-v, --version', 'Output the version number');
19
19
 
20
+ program
21
+ .command('version')
22
+ .description('Output the version number')
23
+ .action(async () => {
24
+ console.log('Version: ' + packageJson.version);
25
+ process.exit(0);
26
+ });
27
+
20
28
  program
21
29
  .command('init')
22
30
  .description('Initialize configuration and download pages')