570 Commits

Author SHA1 Message Date
Nate Fischer
9c7e6a892a refactor: add wrapOutput option to auto-ShellString-ify command output (#481) 2016-07-24 18:20:36 -07:00
Nate Fischer
e438e61f45 refactor: move option parsing into common.wrap() (#479)
* refactor: move option parsing into common.wrap()

* docs: update README
2016-07-24 17:52:51 -07:00
Nate Fischer
880d732611 fix: resolve a cylcic-dependency problem (#482)
If a plugin was imported before the ShellJS instance was created, the program
would crash (common.register wouldn't be instantiated yet). Now plugins can be
imported either before or after the ShellJS instance is created.
2016-07-24 17:52:28 -07:00
Nate Fischer
7b984e1c25 fix: mkdir for invalid perms does not kill process (#474)
* fix: mkdir for invalid perms does not kill process

* Re-throw exception in case it isn't `EACCES`
2016-07-24 16:58:45 -07:00
Nate Fischer
39fd6d1ed7 Fix mkdir malformed path (#477)
* Added recurs. mkdir dirname() failure check.

Prevents an infinite loop with malformed UNCs and/or permission problems.

* Now call common.error() instead of throwing (mkdir).

* refactor: clean up style
2016-07-23 16:21:59 -07:00
Nate Fischer
bd6f96db33 refactor: hook new uniq() command using new format (#478) 2016-07-23 10:56:26 -07:00
Shubham Joshi
3367e0c6c7 feat(command): new command: uniq() (#453)
* Added uniq.js, need to add tests

* Added basic tests for uniq.js

* Implemented uniq and added tests

* Generated docs for uniq

* Fixed lint error

* Added suport for -c and -d to uniq

* Generated docs

* Fixed formatting errors. Uniq now correctly returns empty string when output is specified

* Added uniq to piped methods

* Improved comment legibility

* Cleaned up the pipeline

* Added pipe test for uniq

* Converted uniq pipe test file to use linux line endings

* Fixed linting errors
2016-07-22 15:49:09 -07:00
Nate Fischer
413bc7902a docs(changelog): updated by Nate Fischer [ci skip] 2016-07-22 15:25:58 -07:00
Nate Fischer
2c80e2e02c 0.7.1 v0.7.1 2016-07-22 15:25:03 -07:00
Nate Fischer
430042f26d docs(changelog): updated by Nate Fischer [ci skip] 2016-07-21 18:35:58 -07:00
Nate Fischer
3951a87913 refactor: commands now register themselves (#475) 2016-07-21 17:37:11 -07:00
Nate Fischer
3e37ae4651 chore: switch to shields.io, and add npm badge (#470)
* chore: switch to shields.io, and add npm badge

* fix badge link
2016-07-21 16:52:58 -07:00
Nate Fischer
5339375db0 fix(cp): -n option no longer raises error (#466)
Fixes #465
2016-06-28 00:27:33 -07:00
Nate Fischer
0bab3e9b47 chore: update release process (#459) 2016-06-20 10:06:27 -07:00
Nate Fischer
5d6adbaf53 fix(mv): works across partitions (#461)
Fixes #1
2016-06-19 14:44:32 -07:00
Nate Fischer
06c3d44e5b refactor: expose pipe-ability to command configuration (#464) 2016-06-17 16:05:59 -07:00
Nate Fischer
fbe7458ad2 chore: switch to shelljs-changelog (#460) 2016-06-17 11:22:38 -07:00
Zephraph
353138c5e0 Revert "chore(make): depreciate shelljs/make (#431)" (#458)
This reverts commit 5a31c7c4369b5e6dbf71b005d040c525ec07b68e.
2016-06-12 22:18:40 -07:00
Nate Fischer
4134727490 chore: clarify message for when docs are not generated (#457) 2016-06-09 07:35:37 -07:00
Nate Fischer
2e87f14c07 chore: update jshint and move it to an npm script (#454) 2016-06-07 16:57:42 -07:00
Nate Fischer
36cc243efd chore(gendocs): add npm run gendocs command (#455) 2016-06-04 17:06:00 -07:00
Nate Fischer
497149cc23 docs(exec): explicitly mention the shell option (#449) 2016-05-27 08:31:40 -07:00
Nate Fischer
6f5f77547e test(ls): add case for trailing slash on dir name (#450) 2016-05-27 08:30:47 -07:00
Levi Thomason
87aaefa498 chore: setup changelog (#443)
* chore(changelog): add scripts

* docs(release): update release docs

* chore(editorconfig): add config

* docs(changelog): updated by levithomason
2016-05-16 21:03:26 -07:00
Nate Fischer
57a9be2693 docs: comment code better to help contributors 2016-05-12 07:40:18 -07:00
Nate Fischer
3a79b3f9eb chore(CI): update appveyor (#436) 2016-05-03 14:43:07 -07:00
Ari Porad
5a31c7c436 chore(make): depreciate shelljs/make (#431) 2016-04-28 20:25:13 -07:00
Nate Fischer
d7da0acef7 chore: test against node v6 2016-04-26 21:48:38 -07:00
Nate Fischer
19df52df1f docs: warn that README contains newest features (#410) 2016-04-25 17:25:27 -07:00
Nate Fischer
bce3a53bb1 chore: bump version (#429) v0.7.0 2016-04-25 14:37:14 -07:00
Nate Fischer
2fa739e3f1 fix: null is no longer confused for an object
This is an issue in the case of `echo(which('fakecmd'))`. This used to succeed
in v0.6 but was broken during the ShellString refactor.
2016-04-20 15:20:05 -07:00
Nate Fischer
7f802ed20c fix(ls): no trailing newline for empty directories (#425) 2016-04-14 16:27:59 -07:00
Nate Fischer
0c85cc198c docs(CONTRIBUTING): add CONTRIBUTING.md with contributing guidelines and issue template 2016-04-14 07:54:03 -07:00
Nate Fischer
50f72b0c3d chore: add "Team" section to README (#423) 2016-04-13 08:48:05 -07:00
Nate Fischer
56fbf5c414 feat(cp): -P option, plus better handling of symlinks (#421) 2016-04-08 15:34:54 -07:00
Nate Fischer
943a581b34 docs(error): deprecate relying on string value 2016-04-06 10:16:52 -04:00
Nate Fischer
b162a2ffe6 Merge pull request #419 from shelljs/docs-exec-return-value
docs(exec): fix docs about exec return type
2016-04-05 21:23:19 -07:00
Ari Porad
193efa7048 Merge pull request #417 from shelljs/fix-error-message
fix: error message now printed for fatal failures
2016-04-01 07:36:57 -07:00
Nate Fischer
e87e29dd8d fix: error message now printed for fatal failures 2016-03-31 22:11:44 -07:00
Nate Fischer
2984b40b12 Merge pull request #379 from shelljs/feat-head-sort-commands
New commands: sort(), head(), and tail()
2016-03-31 21:22:11 -07:00
Nate Fischer
60d63015cd feat(command): new command: tail() 2016-03-31 21:05:30 -07:00
Nate Fischer
a1d5f6afb6 feat(command): new command: head() 2016-03-31 21:05:30 -07:00
Nate Fischer
f6952cb781 feat(command): new command: sort() 2016-03-31 21:05:30 -07:00
Nate Fischer
16cb1afce4 Merge pull request #408 from shelljs/rm-remove-duplicate-code
refactor(rm): Remove duplicate code
2016-03-27 22:55:23 -07:00
Nate Fischer
defd8d4215 refactor(rm): Remove duplicate code 2016-03-27 22:23:07 -07:00
Ari Porad
3589d1e898 Merge pull request #409 from charlesverge/issue-407
fix(cp): cp symlink behavior
2016-03-26 20:22:56 -07:00
Charles Verge
dad3ad8d72 Add cp test to ensure -L does not change -r behavior and update test cases to handle non admin windows test execution 2016-03-24 22:32:55 -03:00
Charles Verge
61cb383859 issue-407: Add regular files unit tests and fix symlink copy behavior 2016-03-24 22:32:55 -03:00
Nate Fischer
6649252f6b Merge pull request #400 from shelljs/glob-options
feat(glob): expose config.globOptions.
2016-03-24 18:28:19 -07:00
Nate Fischer
a41950770f feat(glob): expose config.globOptions.
Allow users to customize the settings of `glob.sync()` (if they so-desire). This
doesn't change the default behavior.
2016-03-24 18:06:26 -07:00