Kyle Anderson 1572808adb
Filter out empty glob patterns to "glob" command (#6707)
* Filter out empty glob patterns

An empty argument to the "glob" command will now produce an empty result.
Working towards nushell/nushell#6653.

* Run `cargo fmt --all`

Just autoformatted the repo so that CI passes and we have a consistent code
format across modules.

* Treat empty glob argument as error

The glob command will now report an empty string argument as an error instead
of silently ignoring it.

See https://github.com/nushell/nushell/pull/6707#discussion_r993345013.

* Add tests for glob command

Two small tests for the glob command, one to check that the empty string errors
it, and another to sanity check the '*' glob, have been added.

* Rename glob sanity check star test

Co-authored-by: Kyle Anderson <kyle.anderson@uwaterloo.ca>
2022-10-15 18:00:38 +02:00
..
2022-08-11 11:54:54 -05:00
2022-09-11 11:48:27 +03:00
2022-09-11 11:48:27 +03:00
2022-10-14 21:51:44 +02:00
2022-09-05 16:41:06 +02:00
2022-09-05 16:41:06 +02:00
2022-02-07 14:54:06 -05:00
2022-02-07 14:54:06 -05:00
2022-09-01 08:32:56 +12:00
2022-02-07 14:54:06 -05:00
2022-09-05 16:41:06 +02:00
2022-09-11 11:48:27 +03:00
2022-02-17 06:40:24 -05:00
2022-09-05 16:41:06 +02:00
2022-02-07 14:54:06 -05:00
2022-09-11 11:48:27 +03:00
2022-02-16 12:24:45 -06:00
2022-05-18 20:47:26 -05:00
2022-03-19 10:12:54 +13:00
2022-07-04 06:31:50 +12:00
2022-02-07 14:54:06 -05:00
2022-02-07 14:54:06 -05:00
2022-09-25 19:52:43 +03:00
2022-09-11 11:48:27 +03:00
2022-05-13 06:47:11 -05:00
2022-09-11 11:48:27 +03:00
2022-09-11 11:48:27 +03:00
2022-02-07 14:54:06 -05:00
2022-02-07 14:54:06 -05:00
2022-02-07 14:54:06 -05:00
2022-10-10 07:32:55 -05:00
2022-09-28 13:48:34 +13:00
2022-03-19 10:12:54 +13:00
2022-03-18 06:55:02 +13:00
2022-03-24 16:42:41 +13:00
2022-02-22 11:32:29 -05:00
2022-09-11 11:48:27 +03:00