787 Commits

Author SHA1 Message Date
Nate Fischer
45f719de75 fix: echo supports -e option properly (#511) 2016-08-23 19:36:05 -07:00
Nate Fischer
ab8cf5a8e0 refactor: replace fs.existsSync (#509)
* refactor: replace fs.existsSync

* fix: add support for v0.10
2016-08-20 18:28:49 -07:00
Nate Fischer
a0c9032072 refactor: readFromPipe() requires no arguments (#506) 2016-08-13 15:50:31 -07:00
Nate Fischer
902f92ab5b feat: add overWrite option for commands (#503)
* feat: add overWrite option for commands

* fix: throws an error if a command is overwritten
2016-08-08 11:44:16 -07:00
Nate Fischer
2395214fee chore: switch to eslint (#504)
* chore: switch to eslint

* fix: works on older versions of NodeJS now

* chore: fix curly braces

* chore: fix indents and remove jshint references
2016-08-07 12:16:29 -07:00
Nate Fischer
32db059a01 chore: update issue template (#502) 2016-08-05 15:57:57 -07:00
Charles Read
cdd21c62f1 fixed head/tail readme (#499) 2016-07-31 12:58:21 -07:00
Nate Fischer
e24b6754f2 docs(changelog): updated by Nate Fischer [ci skip] 2016-07-27 16:45:51 -07:00
Nate Fischer
cb8b6a7e11 0.7.3 v0.7.3 2016-07-27 16:44:55 -07:00
Nate Fischer
d4111763a9 refactor: glob by default for commands (#492) 2016-07-27 16:43:01 -07:00
Nate Fischer
06ae7d9b88 fix: conflicting options now properly override each other (#489) 2016-07-27 09:31:38 -07:00
Nate Fischer
add14adbf4 refactor: switch common.extend() to Object.assign ponyfill (#490) 2016-07-27 09:28:11 -07:00
Nate Fischer
11141a35ba refactor: switch from notUnix to unix in wrap() (#491) 2016-07-27 09:27:12 -07:00
Nate Fischer
7b9ec7fb66 refactor: allow pipeOnly commands (methods on ShellStrings) (#493) 2016-07-27 09:26:45 -07:00
Nate Fischer
8f7a7d8c57 refactor: expose plugin utils & add initial tests (#484)
* refactor: expose plugin utils & add initial tests

* fix: plugins work with Node v0.12
2016-07-26 21:32:33 -07:00
Nate Fischer
cec859e709 docs(changelog): updated by Nate Fischer [ci skip] 2016-07-25 12:11:56 -07:00
Nate Fischer
dee29a07b2 0.7.2 v0.7.2 2016-07-24 23:40:09 -07:00
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