thinkncollab-shell 0.0.16 → 0.0.17

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "thinkncollab-shell",
3
- "version": "0.0.16",
3
+ "version": "0.0.17",
4
4
  "description": "ThinkNCollab Custom Shell with WebSocket collaboration",
5
5
  "main": "src/core/shell.js",
6
6
  "bin": {
@@ -47,6 +47,7 @@ const load = (path, category) => {
47
47
  // Shell
48
48
  load('./shell/status', 'shell');
49
49
  load('./shell/notify', 'shell');
50
+ load('./shell/version', 'shell');
50
51
 
51
52
  // Tasks
52
53
  load('./tasks/tasks', 'tasks');
@@ -0,0 +1,18 @@
1
+ /*
2
+ Version Command
3
+
4
+ Usage: version
5
+ */
6
+ const chalk = require('chalk');
7
+
8
+ module.exports = {
9
+ name: 'version',
10
+ description: 'Show shell CLI version',
11
+ aliases: ['v', '-v', '--version'],
12
+ requiresAuth: false,
13
+
14
+ async execute(args, shell) {
15
+ const pkg = require('../../../package.json');
16
+ console.log(`\n ${chalk.yellow('ThinkNCollab CLI Version:')} ${chalk.green(pkg.version)}\n`);
17
+ }
18
+ };