110 Commits

Author SHA1 Message Date
Nate Fischer
8a7f7ceec4 add exec.stdout
Change `exec.output` to `exec.stdout` and deprecate `output`.
2016-01-12 17:14:13 -08:00
Nate Fischer
74f1ff8748 Commands that have multiple errors now produce cleaner log output. Errors are
echoed to stderr. exec() supports a new stderr field.
2016-01-12 17:02:19 -08:00
Brett Jones
08b4212b15 add touch(1) 2016-01-11 19:47:09 -06:00
Liam (GH:rezonant)
766c2ddb59 Implements capital X (entry on directories) 2015-08-26 16:00:06 -04:00
Liam (GH:rezonant)
55225d9a0d A broken test 2015-08-26 15:00:33 -04:00
Liam (GH:rezonant)
e4e026dac4 Fixes incorrect mask 2015-08-26 14:20:07 -04:00
Liam (GH:rezonant)
9aba4d4ab2 Adds more tests 2015-08-26 14:17:57 -04:00
Artur Adib
20db182fcb Revert "Merge pull request #116 from idearat/master"
This reverts commit 65b658d1e47f380e4a50a859a871c8c48d1bd775, reversing
changes made to e88679a4a9146017cc9821efa4645acc7ef428c4.
2014-06-15 12:00:00 -04:00
Artur Adib
65b658d1e4 Merge pull request #116 from idearat/master
Add -l and -s support to grep.
2014-06-15 11:52:20 -04:00
idearat
5aaca88461 Update tests to deal with potential ordering differences. 2014-04-23 05:32:52 -06:00
Artur Adib
8ba50dcf6b Merge pull request #119 from utensil/118-grep-glob
grep() support for globing, fixes #118
2014-04-21 14:05:30 -04:00
utensil
dd15cff4e6 improve tests on ** for directory name 2014-04-20 15:13:31 +08:00
utensil
46231f432e fix order issue under node 0.8 2014-04-20 10:39:59 +08:00
utensil
98aad77ea4 add ** glob tests for common.expand() and fail it 2014-04-19 21:51:56 +08:00
utensil
668bd168c7 add test for common.expand() and pass it 2014-04-19 21:49:48 +08:00
utensil
a2549f8589 fix typo 2014-04-19 21:47:10 +08:00
utensil
c8d63ef675 add grep glob test, ** for dir name, fails it 2014-04-19 21:31:46 +08:00
utensil
356a9edb75 add grep glob test, * for file name, passes 2014-04-19 21:30:52 +08:00
utensil
3968dc41e7 make sed() support replacement function, fixes #115 2014-04-19 21:05:47 +08:00
idearat
ac6994a740 Add -l and -s support to grep. 2014-04-18 15:58:15 -06:00
Michael Schoonmaker
93987f6a4a Add a regression test for ln treating abspaths badly. 2013-10-11 11:33:49 -07:00
Michael Schoonmaker
b715c2c240 Add ln support, including both -s and -f options. 2013-10-10 18:03:09 -07:00
Artur Adib
193968a978 remove old shims 2013-09-21 10:19:38 -04:00
Artur Adib
21f721cb45 more stringent jshint; catch leaks/undefs 2013-09-21 10:12:28 -04:00
Artur Adib
b932ad1f18 fix rm test 2013-09-11 14:08:02 -04:00
Artur Adib
9e38daa8e8 rm: don't fail to remove symlinks to dirs 2013-09-11 13:58:35 -04:00
Nils Bunger
d97c34627c Make shell.exec() treat process error return codes as shelljs errors 2013-09-08 17:16:08 -07:00
Artur Adib
537ba1c3a7 cp preserves mode bits 2013-09-02 14:13:04 -04:00
Andrew Duffy
ff5212aa97 Updated test for toEnd() to be more comprehensive. 2013-08-25 19:36:31 -07:00
Andrew Duffy
91c82e0cc6 Fixed README so that it's based off in-source documentation
Renamed appendTo() to toEnd().
2013-08-25 19:36:16 -07:00
Andrew Duffy
78e89faf28 Added appendTo() function to imitate '>>' redirect-and-append pipe. 2013-08-25 16:36:05 -07:00
Stephen Mathieson
023962cfff changes per @arturadib's code review 2013-06-12 11:23:56 -04:00
Stephen Mathieson
0ce07eee07 tempdir: use os.tmpDir when possible 2013-06-08 18:57:19 -04:00
Artur
55e1d662f7 Merge remote-tracking branch 'arturadib/master' 2013-04-21 17:01:41 -04:00
Artur
62da271665 find doesn't crash with broken symlinks 2013-04-21 17:01:02 -04:00
Artur Adib
3b57b24460 Merge pull request #56 from lge88/master
test('-L', badlink) should return true
2013-04-06 06:09:55 -07:00
Artur
f7d2e3c188 Merge remote-tracking branch 'iapain/exec-options-fix'
Conflicts:
	shell.js
2013-04-06 09:05:30 -04:00
Li Ge
38f1d6d9c4 If a symbolic link is broken, test('-L', badlink) should still return true.
While test('-L', 404) should return false.
2013-03-21 01:33:02 -07:00
Artur
5f15f49515 old makerjs --> shelljs 2013-03-20 09:24:05 -04:00
Deepak Thukral
7b9ee5a41d Kept existing options and re-wrote the test case. 2013-03-11 13:10:05 +01:00
Deepak Thukral
a91aa8cc9a exec with callback failed with slient param was defined 2013-03-11 12:30:44 +01:00
Artur
98f3b0b2ef minor 2013-01-08 11:31:20 -05:00
Artur Adib
91cb4ebb66 Merge pull request #48 from brandonramirez/chmod
Implemented chmod command.  Github issue 35
2013-01-08 08:29:10 -08:00
Artur Adib
b020cd4d7a clean up for PR #47 2012-12-31 13:47:33 -05:00
Artur Adib
a9a03b3f4e Merge pull request #47 from mstade/pushd-popd-dirs
Work in progress: pushd/popd/dirs
2012-12-31 10:40:06 -08:00
Brandon Ramirez
8a9425acf8 To fix travis-ci build issues, try to focus tests on the bits that changed to reduce the likelihood of umask issues. 2012-12-30 09:39:58 -05:00
Brandon Ramirez
f1bf34aebb Add unit test directory stucture. Sorry, new to git. Forgot that it has no support for empty directories. 2012-12-30 09:29:59 -05:00
Brandon Ramirez
bc15f47b0b Include unit tests. 2012-12-29 19:49:48 -05:00
Marcus Stade
ab2958825e Another missing semi colon. 2012-12-29 07:08:52 +01:00
Marcus Stade
cb8d094779 JSHint hates my code. 2012-12-29 07:06:30 +01:00