Comparing version 0.3.1 to 0.3.2
@@ -5,8 +5,36 @@ # Change Log | ||
[Full Changelog](https://github.com/shelljs/shx/compare/v0.3.0...HEAD) | ||
[Full Changelog](https://github.com/shelljs/shx/compare/v0.3.1...HEAD) | ||
**Closed issues:** | ||
- Mocha and babel compiler warnings [\#144](https://github.com/shelljs/shx/issues/144) | ||
- Add "true" and "false" commands [\#105](https://github.com/shelljs/shx/issues/105) | ||
- --help should list options [\#101](https://github.com/shelljs/shx/issues/101) | ||
**Merged pull requests:** | ||
- chore: fix issues with nyc and mocha [\#145](https://github.com/shelljs/shx/pull/145) ([nfischer](https://github.com/nfischer)) | ||
- feat: help command provides info on options [\#143](https://github.com/shelljs/shx/pull/143) ([nfischer](https://github.com/nfischer)) | ||
- feat: add true and false as default commands [\#142](https://github.com/shelljs/shx/pull/142) ([nfischer](https://github.com/nfischer)) | ||
## [v0.3.1](https://github.com/shelljs/shx/tree/v0.3.1) (2018-06-26) | ||
[Full Changelog](https://github.com/shelljs/shx/compare/v0.3.0...v0.3.1) | ||
**Closed issues:** | ||
- curl / wget [\#141](https://github.com/shelljs/shx/issues/141) | ||
- Regex support for forward slashes in sed [\#136](https://github.com/shelljs/shx/issues/136) | ||
- Appveyor config broken for latest npm [\#132](https://github.com/shelljs/shx/issues/132) | ||
- `shx echo -n aaa` shows `-n aaa` [\#129](https://github.com/shelljs/shx/issues/129) | ||
- feature request: --version [\#111](https://github.com/shelljs/shx/issues/111) | ||
**Merged pull requests:** | ||
- test\(coverage\): fix coverage issues [\#139](https://github.com/shelljs/shx/pull/139) ([nfischer](https://github.com/nfischer)) | ||
- feat\(version\): support --version flag [\#138](https://github.com/shelljs/shx/pull/138) ([nfischer](https://github.com/nfischer)) | ||
- fix\(sed\): better support for converting sed patterns [\#137](https://github.com/shelljs/shx/pull/137) ([nfischer](https://github.com/nfischer)) | ||
- chore: bump dev dependencies to resolve install warnings [\#135](https://github.com/shelljs/shx/pull/135) ([nfischer](https://github.com/nfischer)) | ||
- chore\(appveyor\): do not use latest npm [\#133](https://github.com/shelljs/shx/pull/133) ([nfischer](https://github.com/nfischer)) | ||
- chore\(CI\): add node v10 to CI [\#131](https://github.com/shelljs/shx/pull/131) ([nfischer](https://github.com/nfischer)) | ||
## [v0.3.0](https://github.com/shelljs/shx/tree/v0.3.0) (2018-06-08) | ||
@@ -13,0 +41,0 @@ [Full Changelog](https://github.com/shelljs/shx/compare/v0.2.2...v0.3.0) |
@@ -6,3 +6,3 @@ 'use strict'; | ||
}); | ||
exports.shouldReadStdin = exports.SHELLJS_PIPE_INFO = exports.CONFIG_FILE = exports.CMD_BLACKLIST = exports.EXIT_CODES = undefined; | ||
exports.shouldReadStdin = exports.SHELLJS_PIPE_INFO = exports.CONFIG_FILE = exports.OPTION_BLACKLIST = exports.CMD_BLACKLIST = exports.EXIT_CODES = undefined; | ||
@@ -23,2 +23,7 @@ var _minimist = require('minimist'); | ||
var OPTION_BLACKLIST = exports.OPTION_BLACKLIST = ['globOptions', // we don't have good control over globbing in the shell | ||
'execPath', // we don't currently support exec | ||
'bufLength', // we don't use buffers in shx | ||
'maxdepth']; | ||
var CONFIG_FILE = exports.CONFIG_FILE = '.shxrc.json'; | ||
@@ -25,0 +30,0 @@ |
@@ -15,10 +15,24 @@ 'use strict'; | ||
// Global options defined directly in shx. | ||
var locallyDefinedOptions = ['version']; | ||
var shxOptions = Object.keys(_shelljs2.default.config).filter(function (key) { | ||
return typeof _shelljs2.default.config[key] !== 'function'; | ||
}).filter(function (key) { | ||
return _config.OPTION_BLACKLIST.indexOf(key) === -1; | ||
}).concat(locallyDefinedOptions).map(function (key) { | ||
return ' * --' + key; | ||
}); | ||
exports.default = function () { | ||
// Note: compute this at runtime so that we have all plugins loaded. | ||
var commandList = Object.keys(_shelljs2.default).filter(function (cmd) { | ||
return typeof _shelljs2.default[cmd] === 'function' && _config.CMD_BLACKLIST.indexOf(cmd) === -1; | ||
return typeof _shelljs2.default[cmd] === 'function'; | ||
}).filter(function (cmd) { | ||
return _config.CMD_BLACKLIST.indexOf(cmd) === -1; | ||
}).map(function (cmd) { | ||
return ' * ' + cmd; | ||
}); | ||
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) { | ||
return ' - ' + cmd; | ||
}).join('\n') + '\n'; | ||
return '\nshx: A wrapper for shelljs UNIX commands.\n\nUsage: shx [shx-options] <command> [cmd-options] [cmd-args]\n\nExample:\n\n $ shx ls .\n foo.txt\n baz.js\n $ shx rm -rf *.txt && shx ls .\n baz.js\n\nCommands:\n\n' + commandList.join('\n') + '\n\nShx Options (please see https://github.com/shelljs/shelljs for details on each\noption):\n\n' + shxOptions.join('\n') + '\n'; | ||
}; |
@@ -114,2 +114,5 @@ #!/usr/bin/env node | ||
// Always load true-false plugin | ||
require('./plugin-true-false'); | ||
// validate command | ||
@@ -116,0 +119,0 @@ if (typeof _shelljs2.default[fnName] !== 'function') { |
{ | ||
"name": "shx", | ||
"version": "0.3.1", | ||
"version": "0.3.2", | ||
"description": "Portable Shell Commands for Node", | ||
@@ -63,3 +63,3 @@ "bin": { | ||
"mocha": "^5.2.0", | ||
"nyc": "^12.0.2", | ||
"nyc": "^11.0.0", | ||
"rimraf": "^2.5.2", | ||
@@ -66,0 +66,0 @@ "shelljs-changelog": "^0.2.0", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
34108
10
261