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
Brandon Freitag
7fa4b995bf
Finalize moving to ava ( #630 )
...
* Move ava-test/ directory to test/
* Remove unnecessary run-tests.js script
* Run only ava during npm test script
2016-12-20 11:27:02 -08:00
Nate Fischer
a7ca4d6a8a
test: refactor grep tests to AVA ( #606 )
2016-12-08 23:19:42 -08:00
Gyandeep Singh
93ea025755
Revert "refactor: replace fs.existsSync" ( fixes #531 ) ( #532 )
...
This reverts commit ab8cf5a8e027b28fc7b784587e4339d2b6d0f08f.
2016-10-17 20:14:43 -07:00
Nate Fischer
ab8cf5a8e0
refactor: replace fs.existsSync ( #509 )
...
* refactor: replace fs.existsSync
* fix: add support for v0.10
2016-08-20 18:28:49 -07:00
Nate Fischer
2395214fee
chore: switch to eslint ( #504 )
...
* chore: switch to eslint
* fix: works on older versions of NodeJS now
* chore: fix curly braces
* chore: fix indents and remove jshint references
2016-08-07 12:16:29 -07:00
Nate Fischer
2e87f14c07
chore: update jshint and move it to an npm script ( #454 )
2016-06-07 16:57:42 -07:00
Nate Fischer
27a760299c
refactor: more commands return ShellStrings, tests for code
2016-03-15 19:48:13 -07: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
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
1ee696d824
fix: regexes are more consistent with sed and grep
...
sed will now convert search strings to regex form, so `'a*'` will now work like
`/a*/`. Also, new tests for grep and sed ensure that '*' is not expanded for
filename globbing.
2016-01-23 21:16:43 -08:00
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
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
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
idearat
ac6994a740
Add -l and -s support to grep.
2014-04-18 15:58:15 -06: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
ef795af7e4
adding jshint to tests; all tests pass
2012-12-27 16:32:31 -05:00
Artur Adib
e4d9dabe52
introducing config.silent, config.fatal
...
deprecates silent()
2012-12-01 09:48:23 -05:00
Kalervo Kujala
a40d384a92
Add support for grep option -v.
2012-05-18 01:26:22 +03:00
Artur Adib
11614fd516
Deprecated: verbose() and exists()
2012-03-15 14:20:10 -04:00
Artur Adib
e76cfa9fa1
add support to array arguments
2012-03-02 15:51:44 -05:00
Artur Adib
2d0ff6fa52
grep()
2012-03-02 09:58:21 -05:00
Artur Adib
1739ee3bb3
sed
2012-03-01 21:36:16 -05:00
Artur Adib
f4a2ae3379
first commit
2012-03-01 20:22:44 -05:00