UNPKG

831 BJavaScriptView Raw
1'use strict';
2
3Object.defineProperty(exports, "__esModule", {
4 value: true
5});
6
7var _shelljs = require('shelljs');
8
9var _shelljs2 = _interopRequireDefault(_shelljs);
10
11var _config = require('./config');
12
13function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
14
15exports.default = function () {
16 var commandList = Object.keys(_shelljs2.default).filter(function (cmd) {
17 return typeof _shelljs2.default[cmd] === 'function' && _config.CMD_BLACKLIST.indexOf(cmd) === -1;
18 });
19
20 return '\nshx: A wrapper for shelljs UNIX commands.\n\nUsage: shx <command> [options]\n\nExample:\n\n $ shx ls .\n foo.txt\n bar.txt\n baz.js\n $ shx rm -rf *.txt\n $ shx ls .\n baz.js\n\nCommands:\n\n' + commandList.map(function (cmd) {
21 return ' - ' + cmd;
22 }).join('\n') + '\n';
23};
\No newline at end of file