Skip to content

Commit

Permalink
Add tools/update-version.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed Mar 25, 2021
1 parent ea78f97 commit 2eda89c
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions tools/update-version.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/bin/bash

# Update version in Cargo.toml.
#
# Usage:
# ./tools/update-version.sh [options]
# ./tools/update-version.sh -y patch
# ./tools/update-version.sh -y minor
# ./tools/update-version.sh -y prerelease --pre-id alpha
#
# Note: This script requires cargo-workspaces <https://github.com/pksunkara/cargo-workspaces>

set -euo pipefail
IFS=$'\n\t'

cargo workspaces version --force '*' --no-git-commit --exact "$@"

0 comments on commit 2eda89c

Please sign in to comment.