150 Commits

Author SHA1 Message Date
Nate Fischer
b162a2ffe6 Merge pull request #419 from shelljs/docs-exec-return-value
docs(exec): fix docs about exec return type
2016-04-05 21:23:19 -07:00
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
Nate Fischer
defd8d4215 refactor(rm): Remove duplicate code 2016-03-27 22:23:07 -07: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
Charles Verge
2245536e8b feat(cp): add -L/follow symlink option
Closes #232
2016-03-20 19:11:01 -07:00
Nate Fischer
e282a9be9b docs: wildcards for all commands, other docs cleanups 2016-03-20 14:03:23 -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
5bcbc619e4 feat: adding error codes to ShellJS 2016-03-15 19:21:08 -07:00
Nate Fischer
db20acebfb Switch to process.execPath over 'node' 2016-03-10 17:06:32 -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
0861056a4b refactor(cd): use process.env.OLDPWD to store previous dir 2016-03-04 18:32:53 -08:00
Ari Porad
c661c83ef0 Merge pull request #367 from shelljs/perf/cd
perf(cd): only run `stat` once
2016-02-29 17:18:35 -08:00
Nate Fischer
48a3aade2e Improved cd performance and fix error messages 2016-02-28 23:04:28 -08:00
Nate Fischer
98fc7f48ef feat(pipe): add support for pipes between commands 2016-02-20 22:26:31 -08:00
Ari Porad
1c2ef49f8e perf(cd): only run stat once 2016-02-20 15:41:53 -08:00
Ari Porad
d0b7d0943f Merge pull request #360 from shelljs/refactor-shellstring
refactor(ShellString): refactor shellstring
2016-02-20 14:51:19 -08:00
Nate Fischer
2978855a53 Add ShellString-like methods for ls()'s result 2016-02-19 20:43:39 -08:00
Nate Fischer
14d518c3c4 Merge pull request #365 from shelljs/properly-escape-tempdir
fix(exec): properly handles paths with spaces and quotes
2016-02-19 15:02:51 -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
Nate Fischer
951376b300 fix(exec): properly handles paths with spaces and quotes 2016-02-18 18:22:38 -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
bc13470f91 Update examples in docs for cp() 2016-02-05 13:48:28 -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
164a214e5a use common.extend 2016-02-04 12:17:01 -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