Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,17 +54,17 @@
"babel-cli": "^6.6.5",
"babel-preset-env": "^1.7.0",
"babel-register": "^6.7.2",
"concurrently": "^2.1.0",
"concurrently": "^5.3.0",
"eslint": "^5.16.0",
"eslint-config-airbnb-base": "^13.1.0",
"eslint-plugin-import": "^2.17.3",
"eslint-config-airbnb-base": "^14.2.1",
"eslint-plugin-import": "^2.26.0",
"js-yaml": "^3.12.0",
"mocha": "^6.1.4",
"mocha": "^6.2.3",
"nyc": "^14.1.1",
"rimraf": "^2.5.2",
"shelljs-changelog": "^0.2.6",
"shelljs-plugin-open": "^0.2.1",
"shelljs-release": "^0.5.1",
"shelljs-release": "^0.5.2",
"should": "^13.2.3",
"watch": "^1.0.2"
},
Expand Down
2 changes: 1 addition & 1 deletion src/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const run = (input) => {
if (shouldReadStdin(parsedArgs._)) {
// Read all stdin first, and then pass that onto ShellJS
const chunks = [];
process.stdin.on('data', data => chunks.push(data));
process.stdin.on('data', (data) => chunks.push(data));
process.stdin.on('end', () => run(chunks.join('')));
} else {
// There's no stdin, so we can immediately invoke the ShellJS function
Expand Down
12 changes: 6 additions & 6 deletions src/help.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@ import { CMD_BLOCKLIST, OPTION_BLOCKLIST } from './config';
const locallyDefinedOptions = ['version'];

const shxOptions = Object.keys(shell.config)
.filter(key => typeof shell.config[key] !== 'function')
.filter(key => OPTION_BLOCKLIST.indexOf(key) === -1)
.filter((key) => typeof shell.config[key] !== 'function')
.filter((key) => OPTION_BLOCKLIST.indexOf(key) === -1)
.concat(locallyDefinedOptions)
.map(key => ` * --${key}`);
.map((key) => ` * --${key}`);

export default () => {
// Note: compute this at runtime so that we have all plugins loaded.
const commandList = Object.keys(shell)
.filter(cmd => typeof shell[cmd] === 'function')
.filter(cmd => CMD_BLOCKLIST.indexOf(cmd) === -1)
.map(cmd => ` * ${cmd}`);
.filter((cmd) => typeof shell[cmd] === 'function')
.filter((cmd) => CMD_BLOCKLIST.indexOf(cmd) === -1)
.map((cmd) => ` * ${cmd}`);

return `
shx: A wrapper for shelljs UNIX commands.
Expand Down