103 Commits

Author SHA1 Message Date
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
Marcus Stade
2f142c1b3c Tests for dirs and popd options
Finished the dirs implementation to take `-N` and `+N` arguments, and
added more tests to cover all options. This should cover most bases.
2012-12-29 07:00:34 +01:00
Marcus Stade
829bdbc785 Improved tests and implementation.
Plenty of errors surfaced with better test coverage. Aside from fixing
the broken implementations, this also prompted me to fully implement
the dirs command.

Also changed the run-tests script to always set cwd to the test folder,
so that tests that change cwd don't affect others (ehum, that'd be
mine.)

More tests to follow.
2012-12-29 03:43:23 +01:00
Artur Adib
ef795af7e4 adding jshint to tests; all tests pass 2012-12-27 16:32:31 -05:00
Marcus Stade
387babda6b Improved tests a little bit.
Added pwd check to all tests, and added a test for invalid use of
popd. More tests to come.
2012-12-27 18:06:52 +01:00
Marcus Stade
19d3d91bb6 Make _dirs() return an array instead of a string 2012-12-27 17:52:11 +01:00
Marcus Stade
18a10bb3d9 Added semicolons and removed dirs from exports 2012-12-27 17:46:37 +01:00
Marcus Stade
4bc3725137 Fixed tests. 2012-12-26 03:18:06 +01:00