32 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
2da9ab55be fix: allow non-normalized paths as input to mkdir (#635)
Adds tests to make sure that non-normalized paths (i.e. path/to/./dir) are
valid for a few commands, including mkdir() which previously failed when given
the -p flag.

Fixes #634
2017-01-07 18:06:15 -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
b26284a319 test: refactor ls to use AVA (#609) 2016-12-13 21:13:41 -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
6f5f77547e test(ls): add case for trailing slash on dir name (#450) 2016-05-27 08:30:47 -07:00
Nate Fischer
7f802ed20c fix(ls): no trailing newline for empty directories (#425) 2016-04-14 16:27:59 -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
27a760299c refactor: more commands return ShellStrings, tests for code 2016-03-15 19:48:13 -07: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
2978855a53 Add ShellString-like methods for ls()'s result 2016-02-19 20:43:39 -08:00
Nate Fischer
3a7eb3f2ad feat(glob): glob support for (almost) all commands 2016-02-13 21:22:48 -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
Nate Fischer
c6da9e76fd feat(ls): add -d flag to ls() 2016-01-25 23:44:20 -08: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
Artur Adib
09d6e09d87 docs update, ls -a deprecated 2012-09-23 20:09:19 -04:00
James Campos
e17ec6be1d -a includes . and ..; -A does not 2012-09-18 18:02:40 -07:00
Artur Adib
41809795b4 more ls('-Ra') fixes 2012-03-26 11:31:04 -04:00
Artur Adib
d30f40afb2 fix: Object.keys(result).length --> result.length 2012-03-26 11:07:38 -04:00
Artur Adib
88292eacf8 ls() and find() return arrays 2012-03-22 10:12:16 -04:00
Artur Adib
dd789c478c wildcard bug fix 2012-03-21 17:19:45 -04:00
Artur Adib
11614fd516 Deprecated: verbose() and exists() 2012-03-15 14:20:10 -04:00
Artur Adib
1739ee3bb3 sed 2012-03-01 21:36:16 -05:00
Artur Adib
ca71bb8380 ls, cp pass 2012-03-01 21:11:34 -05:00
Artur Adib
b1199823cd progress 2012-03-01 20:55:29 -05:00
Artur Adib
f4a2ae3379 first commit 2012-03-01 20:22:44 -05:00