83 Commits

Author SHA1 Message Date
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
Marcus Stade
3e29c02734 Initial work 2012-12-25 20:57:38 +01:00
Artur Adib
cba4f22a64 simplify fix for issue #44 2012-12-24 10:54:03 -05:00
Marcus Stade
5c8040b3fd Fixes arturadib/shelljs#44 2012-12-24 02:46:28 +01:00
Artur Adib
35211d0783 Merge pull request #42 from danielepolencic/master
Fix single/double quotes in exec
2012-12-01 11:09:17 -08:00
Artur Adib
e4d9dabe52 introducing config.silent, config.fatal
deprecates silent()
2012-12-01 09:48:23 -05:00
Daniele Polencic
0409bd7a27 new test for quotes escaping 2012-11-13 09:52:53 +00:00
Artur Adib
99b9b759fa closes #31 2012-09-28 15:45:34 -04:00
Artur Adib
09d6e09d87 docs update, ls -a deprecated 2012-09-23 20:09:19 -04:00
Artur Adib
eb8ab8a02c Merge pull request #28 from aeosynth/lsa
-a includes . and ..; -A does not
2012-09-23 17:01:47 -07:00
Artur Adib
6c82f6dc0b Merge branch 'master' of github.com:arturadib/shelljs 2012-09-23 15:42:58 -04:00
Artur Adib
40c98d3b1f fixes #15; "cp -R src/ dest" bug 2012-09-23 15:38:44 -04:00
James Campos
e17ec6be1d -a includes . and ..; -A does not 2012-09-18 18:02:40 -07:00
James Campos
57bdc55f01 only lstat on -L 2012-09-12 10:08:42 -07:00
James Campos
0b624342a7 add test for non-existant file 2012-09-12 07:42:21 -07:00
James Campos
1e7a0b9a8d rm tests for block, character, fifo files 2012-09-12 07:41:38 -07:00
James Campos
8a46ec6c83 add test tests (causes mv tests to fail 2012-09-08 19:14:35 -07:00
Artur Adib
4f710c6b55 fixed echo() dash bug 2012-08-25 15:00:18 -04:00
Artur Adib
38a0bde0a9 exec async now returns child proc obj 2012-05-24 22:10:21 -04:00
Kalervo Kujala
a40d384a92 Add support for grep option -v. 2012-05-18 01:26:22 +03:00
Artur Adib
5c4f3609f3 oops 2012-04-16 11:03:35 -04:00