1 | 'use strict';
|
2 |
|
3 | Object.defineProperty(exports, "__esModule", {
|
4 | value: true
|
5 | });
|
6 |
|
7 | var _shelljs = require('shelljs');
|
8 |
|
9 | var _shelljs2 = _interopRequireDefault(_shelljs);
|
10 |
|
11 | var _config = require('./config');
|
12 |
|
13 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
14 |
|
15 | exports.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 |