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鈥檒l 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
Changes from 1 commit
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
Next Next commit
add a little script to update the Nushell version at once
  • Loading branch information
amtoine committed Jun 8, 2023
commit bcd1f8719a34ed5e3c6f0c31c94b0344eff41ba1
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:"
}