/* global __dirname, require, module */
var shell = require('shelljs'),
	path = require('path'),
	readCommands = function () {
		'use strict';
		var result = {};
		shell.ls(path.join(__dirname, './src/commands')).forEach(function (fileName) {
			var cmdName = path.basename(fileName, '.js'),
				cmdFunc = require('./src/commands/' + cmdName);
			result[cmdFunc.name] = cmdFunc;
		});
		return result;
	};
module.exports = readCommands();


@@ -33,19 +33,21 @@
 dule */%0A
-var
+const
  shell =
@@ -140,19 +140,21 @@
 ict';%0A%09%09
-var
+const
  result 
@@ -221,18 +221,8 @@
 Each
-(function 
 (fil
@@ -230,18 +230,22 @@
 Name
-)
+ =%3E
  %7B%0A%09%09%09
-var
+const
  cmd
@@ -305,17 +305,17 @@
 require(
-'
+%60
 ./src/co
@@ -325,19 +325,19 @@
 nds/
-' + 
+$%7B
 cmdName
+%7D%60
 );%0A%09
@@ -397,16 +397,16 @@
 lt;%0A%09%7D;%0A
+
 module.e
@@ -430,9 +430,8 @@
 ands();%0A
-%0A

Convert index.js file to es6