nushell/tests/fixtures
pwygab 24d7227e27
ensure that when nu evaluates files, it allows early returns (#7415)
# Description

Fixes #7301.

# User-Facing Changes

`return` can now be used in scripts without explicit `def main`.

# Tests + Formatting

Don't forget to add tests that cover your changes. (I'm not sure how to
test this.)

Make sure you've run and fixed any issues with these commands:

- `cargo fmt --all -- --check` to check standard code formatting (`cargo
fmt --all` applies these changes)
- `cargo clippy --workspace -- -D warnings -D clippy::unwrap_used -A
clippy::needless_collect` to check that you're using the standard code
style
- `cargo test --workspace` to check that all tests pass

# After Submitting

If your PR had any user-facing changes, update [the
documentation](https://github.com/nushell/nushell.github.io) after the
PR is merged, if necessary. This will help us keep the docs up to date.
2023-02-02 00:02:27 +01:00
..
completions nu-cli/completions: add custom completion test (#5543) 2022-05-14 15:09:41 -05:00
formats ensure that when nu evaluates files, it allows early returns (#7415) 2023-02-02 00:02:27 +01:00
playground/config Revert "Primitives now use color closures..." (#7710) 2023-01-08 21:53:52 -08:00
quoted_completions Auto-Completion: put ` tildes around filenames with parentheses (#7712) 2023-01-10 20:41:54 +01:00