129 Commits

Author SHA1 Message Date
Nate Fischer
ac0ff873f1 refactor: add config.reset() and .resetForTesting() (#641)
Add .reset() and .resetForTesting() to shell.config and use .resetForTesting()
as a standard set-up for unit tests.
2017-01-07 22:40:38 -08:00
Nate Fischer
1548b3da00 refactor: list all commands in commands.json (#616)
* refactor: list all commands in commands.json

This also changes the order of commands in the docs, due to how I changed
the doc-generating script.

* fix lint error and alphabetize command list
2016-12-14 17:57:11 -08:00
Brandon Freitag
12c103fc43 Update sed documentation regarding capture groups (#558)
* Update sed documentation regarding capture groups

* Remove unix sed example for brevity

* Regen README
2016-11-17 21:37:42 -08:00
Nate Fischer
1dbca24444 chore: add Node v7 for CI (#539) 2016-10-28 03:36:04 -07:00
Nate Fischer
d057e075a7 feat: cp -u option (#527)
Only update when the source file is older than the destination, or the
destination file is missing.

Fixes #526
2016-10-14 15:39:59 -07:00
Nate Fischer
35cef9a4ae chore: add downloads per month on README (#513) 2016-08-27 14:32:35 -07:00
Nate Fischer
45f719de75 fix: echo supports -e option properly (#511) 2016-08-23 19:36:05 -07:00
Charles Read
cdd21c62f1 fixed head/tail readme (#499) 2016-07-31 12:58:21 -07:00
Nate Fischer
e438e61f45 refactor: move option parsing into common.wrap() (#479)
* refactor: move option parsing into common.wrap()

* docs: update README
2016-07-24 17:52:51 -07:00
Shubham Joshi
3367e0c6c7 feat(command): new command: uniq() (#453)
* Added uniq.js, need to add tests

* Added basic tests for uniq.js

* Implemented uniq and added tests

* Generated docs for uniq

* Fixed lint error

* Added suport for -c and -d to uniq

* Generated docs

* Fixed formatting errors. Uniq now correctly returns empty string when output is specified

* Added uniq to piped methods

* Improved comment legibility

* Cleaned up the pipeline

* Added pipe test for uniq

* Converted uniq pipe test file to use linux line endings

* Fixed linting errors
2016-07-22 15:49:09 -07:00
Nate Fischer
3e37ae4651 chore: switch to shields.io, and add npm badge (#470)
* chore: switch to shields.io, and add npm badge

* fix badge link
2016-07-21 16:52:58 -07:00
Nate Fischer
497149cc23 docs(exec): explicitly mention the shell option (#449) 2016-05-27 08:31:40 -07:00
Nate Fischer
d7da0acef7 chore: test against node v6 2016-04-26 21:48:38 -07:00
Nate Fischer
19df52df1f docs: warn that README contains newest features (#410) 2016-04-25 17:25:27 -07:00
Nate Fischer
50f72b0c3d chore: add "Team" section to README (#423) 2016-04-13 08:48:05 -07:00
Nate Fischer
56fbf5c414 feat(cp): -P option, plus better handling of symlinks (#421) 2016-04-08 15:34:54 -07:00
Nate Fischer
943a581b34 docs(error): deprecate relying on string value 2016-04-06 10:16:52 -04:00
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
60d63015cd feat(command): new command: tail() 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
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
3daa0db7e5 docs: move make tool docs to the wiki 2016-03-20 01:10:19 -07:00
Ari Porad
4078f26a20 WIP: docs(README): give shx a more prominent posision 2016-03-20 01:02:36 -07:00
Nate Fischer
46402ea533 docs: add link to wiki page 2016-03-20 01:02:36 -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
dc
c8f942f299 Add Cash reference
As per:

https://github.com/dthree/cash/pull/24#

:)
2016-02-25 20:14:01 -08:00
Nate Fischer
04b0472201 Merge pull request #368 from shelljs/drop-v0.10-support
chore: drop node v0.10 support
2016-02-24 12:23:32 -08:00
Ari Porad
e5b9fe7ba7 chore(travis): don't require v0.10 to pass
Also document that we don't support v0.10, and build on iojs. (And don't
send travis emails).
2016-02-24 10:46:03 -08:00
Nate Fischer
98fc7f48ef feat(pipe): add support for pipes between commands 2016-02-20 22:26:31 -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
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
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
Ari Porad
86ced7eb91 chore: test documentup hook 2016-02-13 19:39:02 -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
a35f9dd728 Merge pull request #337 from shelljs/no-coffeescript-in-README
docs(README): remove coffeescript from README
2016-02-04 15:41:16 -08:00
Ari Porad
79343661a9 docs(README): remove coffeescript from README
Other than the CoffeeScript section
2016-02-04 15:31:26 -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
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
Ari Porad
b764c40e00 docs: add link to issue tracker to README 2016-01-31 20:12:22 -08:00
Ari Porad
5e1747865d docs: remove @arturdib's twitter from the README 2016-01-31 18:41:25 -08:00