182 Commits

Author SHA1 Message Date
Nate Fischer
e87e29dd8d fix: error message now printed for fatal failures 2016-03-31 22:11:44 -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
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
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
Nate Fischer
b9f6761cc2 Merge branch 'master' into test-rm-f 2016-03-24 12:53:21 -07:00
Charles Verge
2245536e8b feat(cp): add -L/follow symlink option
Closes #232
2016-03-20 19:11:01 -07:00
Nate Fischer
f554b438c3 test(rm): add tests to prevent a future regression 2016-03-20 14:27:11 -07:00
Nate Fischer
6739aed69e refactor(string): modify string protoype, but only for shelljs/global
`require('shelljs/global')` extends String.prototype to have the `.to()` and
`.toEnd()` methods again. This also adds tests for the global require.
2016-03-18 17:05:14 -07:00
Nate Fischer
27a760299c refactor: more commands return ShellStrings, tests for code 2016-03-15 19:48:13 -07:00
Nate Fischer
db20acebfb Switch to process.execPath over 'node' 2016-03-10 17:06:32 -08:00
Timothy Gu
cebcb6c79b Applying patch provided by @TimothyGu 2016-03-10 16:52:27 -08:00
Kenneth Powers
852abff910 Use rechoir and interpret for scripts. 2016-03-10 16:52:27 -08:00
Nate Fischer
4b951ce4c6 refactor(cp): clean up code and fix #376
Fixes issue in #376. Simplifies the code, and slight perf win.
2016-03-05 17:54:17 -08:00
Nate Fischer
003a800dda Perf improvement for ls, and fix for Windows 2016-03-05 15:57:40 -08:00
Ari Porad
b76a5691c9 refactor(ls): greatly simplify ls implimentation 2016-03-05 15:57:40 -08:00
Nate Fischer
17a23bd4bb Add unit tests to prevent regression (see #376) 2016-02-29 03:05:33 -08:00
Nate Fischer
98fc7f48ef feat(pipe): add support for pipes between commands 2016-02-20 22:26:31 -08:00
Nate Fischer
2978855a53 Add ShellString-like methods for ls()'s result 2016-02-19 20:43:39 -08:00
Nate Fischer
6ebc2d3db7 refactor(shellstring): return consistent objects
- fix(string): no longer overrides string prototype
 - exec() now returns a ShellString object
2016-02-19 14:54:30 -08:00
Ari Porad
56eb0c556e Merge pull request #364 from shelljs/test-ln-s-dir
test(ln): add tests for linking to cwd
2016-02-19 15:11:12 -07:00
Nate Fischer
ed4c09fb77 test(ln): add tests for linking to '.' directory 2016-02-19 12:57:33 -08:00
Nate Fischer
0166658597 fix(verbose): verbose-style logging is consistent 2016-02-16 21:11:31 -08:00
Nate Fischer
0da963b51f Merge pull request #357 from jcoreio/master
config.fatal now throws an exception
2016-02-16 14:44:29 -08:00
Ari Porad
bceac928c4 Merge pull request #346 from shelljs/touch-multiple-files
feat(touch): supports multiple files
2016-02-16 12:27:06 -07:00
Ari Porad
63e4acc779 Merge pull request #359 from shelljs/feat-use-glob
feat(glob): use glob module for globbing
2016-02-16 11:50:15 -07:00
Nate Fischer
19721fc28e feat(touch): supports multiple files 2016-02-16 09:59:25 -08:00
Nate Fischer
e2f980e29d feat(set): add -f option to disable shell globbing 2016-02-16 09:48:24 -08:00
Jason McLaurin
6bf7d77ecf change config.fatal to throw an exception instead of terminating the node.js process 2016-02-16 11:19:25 -06:00
Nate Fischer
04f891f785 feat(glob): use glob module for globbing
Switch to the glob module to do shell globbing. Fixes a bug in `cp()` where
hidden files were not copied recursively.
2016-02-16 03:11:04 -08:00
Ari Porad
3ebfe1a070 Merge pull request #352 from shelljs/glob-all-commands
feat(glob): glob support for (almost) all commands
2016-02-14 11:44:46 -08:00
Ari Porad
7531d3a0ee Merge pull request #354 from shelljs/fix-exec-temp-files
fix(exec): temp files are now cleaned up
2016-02-14 08:49:57 -08:00
Nate Fischer
3a7eb3f2ad feat(glob): glob support for (almost) all commands 2016-02-13 21:22:48 -08:00
Nate Fischer
b63dde5d1a fix(exec): now actually supports shell option 2016-02-13 20:45:32 -08:00
Nate Fischer
fed412ff1b fix(exec): temp files are now cleaned up 2016-02-11 15:20:32 -08:00
Nate Fischer
3ea5e247ee feat(grep): add -l option
`grep -l` will only print filenames of matching files.
2016-02-09 09:23:17 -08:00
Nate Fischer
dc79d7eff0 fix(touch): enhance parseOptions and fix touch's -r flag 2016-02-04 15:41:48 -08:00
Ari Porad
c0d9cf7ba1 Merge pull request #335 from shelljs/more-exec-options
feat(exec): allow all exec options to pass through
2016-02-04 14:56:25 -08:00
Nate Fischer
8377b927bf fix(cp): add -n option, make -f default behavior 2016-02-03 21:13:48 -08:00
Nate Fischer
058bb679b0 feat(exec): allow all exec options to pass through 2016-02-03 20:54:41 -08:00
Nate Fischer
f729896516 Merge pull request #329 from shelljs/feat-set-command
feat(set): add new set() command
2016-01-31 20:26:39 -08:00
Ari Porad
ee5baf7344 Merge pull request #326 from shelljs/fix-cat-semantics
fix(cat): make behavior more like unix
2016-01-31 20:25:26 -08:00
Nate Fischer
ca045ea4c5 feat(set): add new set() command
Add new set() command as a wrapper for `config` variables. This takes the `-e`,
`-v`, `+e`, and `+v` flags.
2016-01-31 20:17:37 -08:00
Nate Fischer
2d1ee4dae4 fix(mv): add -n option, make -f default behavior 2016-01-31 15:34:01 -08:00
Nate Fischer
d8466a14dd Merge pull request #324 from shelljs/ls-l-option
feat(ls): add -l  option
2016-01-31 11:18:09 -08:00
Nate Fischer
e918c758a2 feat(ls): add -l option
The `-l` option will now cause `ls()` to return an object containing file stats.
These objects will also have a toString() method that formats it into something
analogous to `ls -l`'s output format.
2016-01-31 11:08:03 -08:00
Ari Porad
a96467a6f5 Merge pull request #290 from isiahmeadows/pathext
feat(Windows): search PATHEXT instead of 3 hardcoded values
2016-01-31 09:01:16 -08:00
Burak Yigit Kaya
fb5a7ece66 Fix symlinking on Windows
Fixes symlink creation on Windows systems and adds a test
for symlinking directories since it needs special treatment
on Windows.

Fixes #301.
2016-01-31 13:15:22 +02:00