Jelle Besseling 44493dac51
Add extern def which allows raw arguments (#8956)
# Description

Extends the `extern` syntax to allow commands that accept raw arguments.
This is mainly added to allow wrapper type scripts for external
commands.

This is an example on how this can be used:

```nushell
extern foo [...rest] { 
  print ($rest | str join ',' ) 
}
foo --bar baz -- -q -u -x
# => --bar,baz,--,-q,-u,-x
```

(It's only possible to accept a single ...varargs argument in the
signature)

# User-Facing Changes

No breaking changes, just extra possibilities.

# Tests + Formatting

Added a test for this new behaviour and ran the toolkit pr checker

# After Submitting

This is advanced functionality but it should be documented, I will open
a new PR on the book for that

Co-authored-by: Jelle Besseling <jelle@bigbridge.nl>
2023-04-28 09:06:43 +02:00
..
2022-11-22 16:58:11 -08:00
2023-03-15 18:54:55 +13:00
2023-03-15 18:54:55 +13:00
2023-01-22 19:49:40 +01:00
2023-03-15 18:54:55 +13:00
2023-04-15 17:11:02 +12:00
2022-12-22 00:33:26 +02:00
2022-09-11 11:48:27 +03:00
2023-03-15 18:54:55 +13:00
2023-03-15 18:54:55 +13:00
2022-02-07 14:54:06 -05:00
2023-03-15 18:54:55 +13:00
2023-03-15 18:54:55 +13:00
2023-03-15 18:54:55 +13:00
2023-03-15 18:54:55 +13:00
2023-03-18 08:58:13 +13:00
2023-03-15 18:54:55 +13:00
2022-09-11 11:48:27 +03:00
2023-03-28 12:40:29 -07:00
2022-02-07 14:54:06 -05:00
2022-11-09 17:06:47 -08:00
2023-03-15 18:54:55 +13:00
2023-03-17 11:53:46 +13:00
2023-02-27 20:44:05 +13:00
2023-03-17 11:53:46 +13:00
2023-03-15 18:54:55 +13:00