Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add a Nushell version update script and bump all versions to 0.81.0 #21

Merged
merged 3 commits into from
Jun 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 14 additions & 19 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ anyhow = "1.0.71"
clap = { version = "4.3.0", optional = true, features = ["unicode", "derive"] }
env_logger = "0.10.0"
log = "0.4.17"
nu-parser = "0.80.0"
nu-protocol = "0.80.0"
nu-parser = "0.81.0"
nu-protocol = "0.81.0"

[dev-dependencies]
criterion = "0.5.1"
Expand Down
19 changes: 19 additions & 0 deletions scripts/update-nushell-version
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/usr/bin/env nu

use std log

def main [
version: string # the new version of Nushell, e.g. 0.82.0
] {
log info "updating the badge in the README"
open README.md
| str replace 'https://img.shields.io/badge/nushell-v\d+\.\d+\.\d+-green' $"https://img.shields.io/badge/nushell-v($version)-green"
| save --force README.md

log info "updating the `nu-parser` dependency"
cargo add $"nu-parser@($version)"
log info "updating the `nu-protocol` dependency"
cargo add $"nu-protocol@($version)"

log warning "do not forget to commit and push this :wink:"
}
Loading