197 Commits
Author SHA1 Message Date
Piepmatz 8c4aeb7349 Add test dependencies via test attribute #[deps(...)] (#18570) 2026-07-11 23:10:41 +02:00
Bahex 7f2af447a9 Consolidate column handling: record & table; SyntaxShape & Type (#18308)
Introduces `CollectionColumns<T>` which handles column related
operations (with `SyntaxShape` and `Type`) for records and tables.
2026-05-31 23:01:04 +03:00
BahexandTim 'Piepmatz' Hesse 1d754e6204 Consolidate version and other metadata in top level Cargo.toml (#18286)
Co-authored-by: Tim 'Piepmatz' Hesse <git+github@cptpiepmatz.de>
2026-05-28 18:02:31 +02:00
Piepmatz ed10ecae98 Prepare release (#18273) 2026-05-24 03:17:18 +02:00
Piepmatz ccf89a41b5 Bump to 0.112.3 (#18055) 2026-04-16 01:08:18 +02:00
Piepmatz b59287a5ca Post release bump to 0.112.2 (#18017) 2026-04-12 01:11:10 +02:00
Piepmatz c5cf8ec002 Select specific version for getrandom and bump minor (#18016) 2026-04-11 23:51:27 +02:00
Piepmatz e91345765f Do not use version for nu dev dependencies (#18015) 2026-04-11 22:59:28 +02:00
Piepmatz 755c970c09 Prepare Release (#18014) 2026-04-11 21:16:54 +02:00
xtqqczzeandTim 'Piepmatz' Hesse 67c1550041 fix: update Cargo.toml files to use workspace edition and rust-version (#17931)
Update all Cargo.toml files to consistently inherit the `edition` and
`rust-version` from the workspace.

Most crates were missing a declared `rust-version`.

---------

Co-authored-by: Tim 'Piepmatz' Hesse <git+github@cptpiepmatz.de>
2026-03-30 02:57:25 +02:00
Piepmatz b36b7eea26 Warn on clippy::needless_raw_strings (#17822)
<!--
Thank you for improving Nushell!
Please, read our contributing guide:
https://github.com/nushell/nushell/blob/main/CONTRIBUTING.md
-->

This PR enables the clippy lint `needless_raw_strings` to avoid raw
strings where they aren't needed. We have a lot of them and I don't
think that's that nice tbh.

## Release notes summary - What our users need to know
<!--
This section will be included as part of our release notes. See the
contributing guide for more details.
Please include only details relevant for users here. Motivation and
technical details can be added above or below this section.

You may leave this section blank until your PR is finalized. Ask a core
team member if you need help filling this section.
-->
n/a
2026-03-17 01:42:03 +01:00
Piepmatz fc98395215 Bump patch after release (#17682) 2026-03-01 01:52:28 +01:00
Piepmatz 6324e01116 update readline version, bump minor version, fix some feature conflicts (#17681) 2026-03-01 00:22:43 +01:00
Darren Schroeder 879ab22815 add more standardization to command arguments (#17639) 2026-02-24 10:22:12 -06:00
Yash Thakur 530d15cf53 Bump to dev version 0.110.1 (#17370)
Since we've released 0.110.0, bump the Nushell version to 0.110.1 in
case we make a patch release
2026-01-18 20:44:45 -05:00
Yash Thakur d40e191d8e Bump to 0.110.0 for release (#17367)
Bump Nushell version to 0.110.0 for release
2026-01-17 20:58:05 -05:00
Piepmatz c08fcb8867 Bump to 0.109.2 (#17107) 2025-12-03 07:22:18 +08:00
Justin Ma eb2b469922 Bump to dev version 0.109.1 (#17093)
<!--
Thank you for improving Nushell!
Please, read our contributing guide:
https://github.com/nushell/nushell/blob/main/CONTRIBUTING.md
-->

## Release notes summary - What our users need to know
<!--
This section will be included as part of our release notes. See the
contributing guide for more details.
Please include only details relevant for users here. Motivation and
technical details can be added above or below this section.

You may leave this section blank until your PR is finalized. Ask a core
team member if you need help filling this section.
-->

## Tasks after submitting
<!-- Remove any tasks which aren't relevant for your PR, or add your own
-->
- [ ] Update the
[documentation](https://github.com/nushell/nushell.github.io)
2025-11-30 12:11:06 +08:00
Justin MaandTim 'Piepmatz' Hesse 55a5652a91 Bump version to 0.109.0 (#17082)
Co-authored-by: Tim 'Piepmatz' Hesse <git+github@cptpiepmatz.de>
2025-11-29 13:56:54 +01:00
987ef47405 Plugin: add one parameter call: DynamicCompletionCall to get_dynamic_completion, and allow to return span. (#17017)
Co-authored-by: Yash Thakur <45539777+ysthakur@users.noreply.github.com>
Co-authored-by: Tim 'Piepmatz' Hesse <git+github@cptpiepmatz.de>
2025-11-20 18:16:37 +01:00
Wind 85b5e57564 Plugin: support custom completions in command flags (#16859)
Closes: #15766

It's similar to https://github.com/nushell/nushell/pull/16383, but
allows to generate completion dynamically, which can be useful for
plugin commands.

To implement this, I added a new `get_dynamic_completion` method to
`Command` trait, so nushell gets the ability to ask plugins for a
completion. Here is how it goes when I type `plugin-cmd --flag1 <tab>`.
1. the completion logic detect it's behind a flag, and it should have a
value, then it goes to `ArgValueDynamicCompletion`
2. inside `ArgValueDynamicCompletion` it calls
`get_dynamic_completion(ArgType::Flag(flag1))` on the command, which can
be plugin command, and it will issue a
`get_dynamic_completion(ArgType::Flag(flag1))` call to the plugin
3. the plugin returns `Some(Vec<DynamicSemanticSuggestion>)` if there
are available items.

It also supports dynamic completion for positional arguments, here is
how it goes when I type `plugin-cmd x<tab>`.
1. the completion logic detect it's behind a flag, and it should have a
value, then it goes to `ArgValueDynamicCompletion`
2. inside `ArgValueDynamicCompletion` it calls
`get_dynamic_completion(ArgType::Positional(0))` on the command, which
can be plugin command, and it will issue a
`get_dynamic_completion(ArgType::Positional(0))` call to the plugin
3. the plugin returns `Some(Vec<DynamicSemanticSuggestion>)` if there
are available items.

## Release notes summary - What our users need to know

### Plugin developer: auto completion is available for plugin command
arguments.

User can define auto completions for plugin commands, here is the way to
define this:

```rust
impl PluginCommand for FlagCompletion {
    type Plugin = ExamplePlugin;
    ...

    fn get_dynamic_completion(
        &self,
        _plugin: &Self::Plugin,
        _engine: &EngineInterface,
        arg_type: ArgType,
    ) -> Option<Vec<DynamicSemanticSuggestion>> {
        match arg_type {
            // enable completion for flag.
            ArgType::Flag(flag_name) => match flag_name {
                "flag1" => Some(vec!["flag_val1".to_string().into(), "flag_val2".to_string().into()]),
                "flag2" => Some(vec!["flag_val3".to_string().into(), "flag_val4".to_string().into()]),
                // for other flags don't need to provide a completion
                _ => None,
            },
            // enable completion for positional arguments.
            ArgType::Positional(index) => None,
        }
    }
}
```
For the detailed example, you can refer to `get_dynamic_completion` in
`crates/nu_plugin_example/src/commands/arg_completion.rs`.

## Tasks after submitting
- [ ] Update the
[documentation](https://github.com/nushell/nushell.github.io)
2025-11-10 13:07:36 +08:00
Piepmatz ddafef92ad Bump to dev version 0.108.1 (#16871) 2025-10-15 18:05:38 +02:00
Stefan HolderbachandTim 'Piepmatz' Hesse da141be11b Bump version for 0.108.0 release (#16863)
Co-authored-by: Tim 'Piepmatz' Hesse <git+github@cptpiepmatz.de>
2025-10-15 13:46:40 +02:00
Stefan HolderbachandTim 'Piepmatz' Hesse bf23573fa9 Update Rust to 1.88.0 and use let-chains (#16671)
Co-authored-by: Tim 'Piepmatz' Hesse <git+github@cptpiepmatz.de>
2025-09-15 10:47:13 +02:00
Stefan Holderbach db28e274db Fix mismatched_lifetime_syntaxes lint (#16618)
Recommended to inform about borrows passing through the return value.
Becomes a lint with Rust 1.89.0


https://blog.rust-lang.org/2025/08/07/Rust-1.89.0/#mismatched-lifetime-syntaxes-lint

## Release notes summary - What our users need to know
N/A
## Tasks after submitting
- watch out for it when upgrading to Rust 1.89.0
2025-09-11 20:44:14 +02:00
Jack Wright 45e6f828da bumping to next development version 2025-09-02 19:14:52 -07:00
Jack Wright c3a6992946 bumping version to 107 (#16565) 2025-09-02 18:21:06 -07:00
Wind eb8d2d3206 Refactor: introduce 2 associated functions to PipelineData (#16233)
# Description
As title: this pr is try to introduce 2 functions to `PipelineData`:
1. PipelineData::list_stream --> create a PipelineData::ListStream
2. PipelineData::byte_stream -> create a PipelineData::ByteStream
And use these functions everywhere.

### Reason behind this change
I tried to implement `pipefail` feature, but this would required to
change `PipelineData` from enum to struct. So use these functions can
reduce diff if I finally change to struct. [Discord message
here](https://discord.com/channels/601130461678272522/615962413203718156/1396999539000479784)
is my plan.

# User-Facing Changes
NaN

# Tests + Formatting
NaN

# After Submitting
NaN
2025-08-02 09:30:30 +08:00
Stefan Holderbach 7203138880 Bump version to 0.106.2 (#16295) 2025-07-30 01:36:35 +02:00
Justin Ma 57dce8a386 Bump patch version (#16236)
Bump patch version
2025-07-25 03:28:24 +08:00
Justin Ma 1b01625e1e Bump to 0.106.0 (#16222)
Bump to 0.106.0
2025-07-23 22:54:21 +08:00
Darren Schroeder ba59f71f20 bump to dev version 0.105.2 (#15952)
# Description

Bump nushell to development version.

# User-Facing Changes
<!-- List of all changes that impact the user experience here. This
helps us keep track of breaking changes. -->

# Tests + Formatting
<!--
Don't forget to add tests that cover your changes.

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` to
check that you're using the standard code style
- `cargo test --workspace` to check that all tests pass (on Windows make
sure to [enable developer
mode](https://learn.microsoft.com/en-us/windows/apps/get-started/developer-mode-features-and-debugging))
- `cargo run -- -c "use toolkit.nu; toolkit test stdlib"` to run the
tests for the standard library

> **Note**
> from `nushell` you can also use the `toolkit` as follows
> ```bash
> use toolkit.nu # or use an `env_change` hook to activate it
automatically
> toolkit check pr
> ```
-->

# 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.
-->
2025-06-12 07:57:01 -05:00
Tim 'Piepmatz' Hesse 1fe62ee613 bump patch version 2025-06-10 21:42:41 +02:00
Justin Ma ebcdf5a8b1 Bump to 0.105.0 (#15930)
<!--
if this PR closes one or more issues, you can automatically link the PR
with
them by using one of the [*linking
keywords*](https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue#linking-a-pull-request-to-an-issue-using-a-keyword),
e.g.
- this PR should close #xxxx
- fixes #xxxx

you can also mention related issues, PRs or discussions!
-->

# Description
Bump to 0.105.0
2025-06-10 23:37:00 +08:00
Justin Ma c10e483683 Bump dev version to 0.104.2 (#15809)
<!--
if this PR closes one or more issues, you can automatically link the PR
with
them by using one of the [*linking
keywords*](https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue#linking-a-pull-request-to-an-issue-using-a-keyword),
e.g.
- this PR should close #xxxx
- fixes #xxxx

you can also mention related issues, PRs or discussions!
-->

# Description
<!--
Thank you for improving Nushell. Please, check our [contributing
guide](../CONTRIBUTING.md) and talk to the core team before making major
changes.

Description of your pull request goes here. **Provide examples and/or
screenshots** if your changes affect the user experience.
-->
Bump dev version to 0.104.2
2025-05-24 00:54:33 +08:00
Jack Wright c2ac8f730e Rust 1.85, edition=2024 (#15741) 2025-05-13 16:49:30 +02:00
Yash Thakur eadb8da9f7 Bump to 0.104.1 dev version (#15669)
Marks development or hotfix
2025-04-29 23:33:10 -04:00
Yash Thakur cda15d91dd Bump version for 0.104.0 release (#15664) 2025-04-29 19:31:45 -04:00
Yash Thakur 2c7ab6e898 Bump to 0.103.1 dev version (#15347)
# Description

Marks development or hotfix
2025-03-19 00:12:01 -04:00
Yash Thakur c986426478 Bump version for 0.103.0 release (#15340) 2025-03-18 20:12:52 -04:00
Yash Thakur 803a348f41 Bump to 0.102.1 dev version (#15012) 2025-02-05 00:19:48 -05:00
Yash Thakur 1aa2ed1947 Bump version to 0.102.0 (#14998) 2025-02-04 10:49:35 -05:00
Stefan Holderbach d3cbcf401f Bump version to 0.101.1 (#14661) 2024-12-24 23:47:00 +01:00
Stefan Holderbach fb26109049 Bump version for 0.101.0 release (#14631)
It's palindromic!
2024-12-22 15:10:19 +01:00
Ian Manske 4edce44689 Remove ListStream type (#14425)
# Description
List values and list streams have the same type (`list<>`). Rather,
streaming is a separate property of the pipeline/command output. This PR
removes the unnecessary `ListStream` type.

# User-Facing Changes
Should be none, except `random dice` now has a more specific output
type.
2024-11-27 09:35:55 +08:00
Justin Ma e6f55da080 Bump to dev version 0.100.1 (#14328) 2024-11-14 10:04:39 +01:00
Justin Ma c9409a2edb Bump version to 0.100.0 (#14312)
<!--
if this PR closes one or more issues, you can automatically link the PR
with
them by using one of the [*linking
keywords*](https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue#linking-a-pull-request-to-an-issue-using-a-keyword),
e.g.
- this PR should close #xxxx
- fixes #xxxx

you can also mention related issues, PRs or discussions!
-->

# Description
<!--
Thank you for improving Nushell. Please, check our [contributing
guide](../CONTRIBUTING.md) and talk to the core team before making major
changes.

Description of your pull request goes here. **Provide examples and/or
screenshots** if your changes affect the user experience.
-->

Bump version to `0.100.0`

# User-Facing Changes

The new release `v0.100.0` is coming...
2024-11-12 22:22:38 +02:00
Ian Manske e87a35104a Remove as_i64 and as_f64 (#14258)
# Description
Turns out there are duplicate conversion functions: `as_i64` and
`as_f64`. In most cases, these can be replaced with `as_int` and
`as_float`, respectively.
2024-11-05 09:28:56 +01:00
Stefan Holderbach f061c9a30e Bump to 0.99.2 (#14136) 2024-10-20 23:12:41 +02:00
Devyn Cairns 59d6dee3b3 Bump to version 0.99.1 (#14100)
Post-release patch bump.
2024-10-16 21:23:37 -05:00