Yehuda Katz
0dc4b2b686
Add support for external escape valve (^dir
)
...
This commit makes it possible to force nu to treat a command as an external command by prefixing it with `^`. For example `^dir` will force `dir` to run an external command, even if `dir` is also a registered nu command.
This ensures that users don't need to leave nu just because we happened to use a command they need.
This commit adds a new token type for external commands, which, among other things, makes it pretty straight forward to syntax highlight external commands uniquely, and generally to treat them as special.
2019-08-15 15:18:18 -07:00
Andrés N. Robalino
024f0915a3
Shellring traversal and filesystem environment retention per session confirmed.
2019-08-15 02:10:33 -05:00
Andrés N. Robalino
75e3c6f547
copies_expected -> expected. Use expected as test dirname expectation outcomes from now on.
2019-08-14 16:05:35 -05:00
Andrés N. Robalino
121237ee4b
Reverted test removal from ( dfcbaed
)
2019-08-14 15:55:26 -05:00
Andrés N. Robalino
154063013f
mv introduced. \¡Viva\!
2019-08-14 15:29:05 -05:00
Andrés N. Robalino
dfcbaed1c6
More descriptive test playground names for commands other than the basic ones.
2019-08-14 15:29:05 -05:00
Andrés N. Robalino
278de0e517
cp refactoring.
2019-08-14 15:29:05 -05:00
Jonathan Turner
6cf3dc92fc
Add support for utf16 files
2019-08-12 16:11:42 +12:00
Andrés N. Robalino
fc38603de8
Test sample changed to check behavior with strings on different operating systems.
2019-08-11 13:18:42 -05:00
Andrés N. Robalino
cee2f5207e
Str plugin: replace & find-replace.
2019-08-11 12:46:14 -05:00
Andrés N. Robalino
21ab65979f
Covered the remaining semver flags for inc plugin.
2019-08-10 06:04:13 -05:00
Andrés N. Robalino
e744237451
Clean up.
2019-08-10 05:56:47 -05:00
Andrés N. Robalino
5372463b37
Extract tests.
2019-08-10 04:40:32 -05:00
Andrés N. Robalino
cb4b2e6116
Inc refactoring. More tests.
2019-08-10 04:38:28 -05:00
Andrés N. Robalino
5bfa2cc4b8
cp wildcard already supported (documented with test)
2019-08-10 04:32:27 -05:00
Jonathan Turner
83030094e0
All tests pass
2019-08-09 17:36:43 +12:00
Jonathan Turner
aadacc2d36
Merge master
2019-08-09 16:51:21 +12:00
Jonathan Turner
b815768166
Fix test
2019-08-09 05:53:28 +12:00
Andrés N. Robalino
ba6d62ea0c
mkdir creates intermediary directories as required (the default). --create-all/--deep flag removed.
2019-08-07 14:38:00 -05:00
Andrés N. Robalino
50393bdf42
Make more visible the strategies for figuring out where to copy files.
2019-08-07 13:42:52 -05:00
Andrés N. Robalino
e0bacaaf37
clean up. more cp. mkdir. more test coverage. fixes.
...
- Introduced mkdir.
- Minor more labelled error improvements.
- Fix to avoid leaking child zombies.
- cp improvements.
- Introduced mkdir.
2019-08-07 13:28:46 -05:00
Andrés N. Robalino
c8b5329c5c
mkdir.
2019-08-07 13:24:20 -05:00
Andrés N. Robalino
1b7dd52713
Tests pass.
2019-08-07 13:23:02 -05:00
Andrés N. Robalino
b38d54e033
Dont let Nu childs become zombies.
2019-08-07 13:18:02 -05:00
Yehuda Katz
fc173c46d8
Restructuring
2019-08-02 12:15:07 -07:00
Jonathan Turner
4821707f96
Test for external quoted strings
2019-08-03 04:33:52 +12:00
Andrés N. Robalino
7a76998f07
regular, * wildcard, and ? covered.
2019-08-02 05:31:15 -05:00
Jonathan Turner
aa54995326
Merge pull request #232 from androbtech/unit-tests-wip
...
Introduced to-int into str plugin and unit tests coverage along with it.
2019-08-02 13:06:30 +12:00
Andrés N. Robalino
1bc1bb6111
Glob paths can fail. Communicates the error if it happens. thanks (jonathandturner)
2019-08-01 16:55:49 -05:00
Andrés N. Robalino
375f311331
Wildcard support adventure starting with rm command.
2019-08-01 16:01:53 -05:00
Andrés N. Robalino
0893f89e89
More readable tests.
2019-08-01 04:28:49 -05:00
Andrés N. Robalino
610a91a658
Test coverage for pull #235
2019-08-01 03:31:41 -05:00
Andrés N. Robalino
a0890b551a
strutils can also convert to an integer now.
2019-07-31 23:50:03 -05:00
Andrés N. Robalino
0b8bbd8637
Unit Testing WIP.
2019-07-31 23:46:59 -05:00
Andrés N. Robalino
7c4706ee50
Validation baseline.
2019-07-28 18:34:37 -05:00
Andrés N. Robalino
59dec999b8
string utils plugin baseline.
2019-07-28 02:01:32 -05:00
Jonathan Turner
e4797f8895
Add end_plugin and sum
2019-07-27 06:40:00 +12:00
Yehuda Katz
73deeb69db
Clean up lint errors
2019-07-23 21:10:48 -07:00
Yehuda Katz
5a8e041a48
Tests pass!
2019-07-23 15:22:11 -07:00
Jonathan Turner
72384629fd
Merge pull request #205 from androbtech/cp_play
...
Introduced initial cp functionality.
2019-07-24 04:46:30 +12:00
Jonathan Turner
ec7d49b0d2
Add and edit functionality
2019-07-22 15:52:57 +12:00
Andrés N. Robalino
2da43f4b06
Introduced initial cp functionality.
2019-07-21 21:23:02 -05:00
Andrés N. Robalino
191dacdd8b
Introduced conversion to csv command.
2019-07-21 02:08:05 -05:00
Jonathan Turner
c36c2a7b50
Switch from_csv to output rows
2019-07-20 18:44:21 +12:00
Jonathan Turner
08f6d29b79
Fix race condition in test
2019-07-20 13:18:27 +12:00
Andrés N. Robalino
895a1b2d72
Introduced ability to open csv documents.
2019-07-19 15:48:42 -05:00
Andrés N. Robalino
514da5bfa7
Can remove files and directories.
2019-07-18 05:21:24 -05:00
Jonathan Turner
0d6881383d
Add some tests
2019-07-18 13:57:58 +12:00
Jonathan Turner
f10225e26b
Merge pull request #190 from jonathandturner/improved_open_url
...
Improved open url
2019-07-18 07:25:02 +12:00
Jonathan Turner
00b3106f05
Improve open URL. Format and remove warning in tests
2019-07-18 06:56:15 +12:00