29 lines · 649 B · Text
RawDownload
#!/usr/bin/env bash set -euox pipefail if [ "$#" -lt 1 ]; then  echo "Usage: $0 <language> [version]"  exit 1fi LANGUAGE=$1VERSION=${2:-} EXTENSION_DIR="extensions/$LANGUAGE"EXTENSION_TOML="$EXTENSION_DIR/extension.toml"CARGO_TOML="$EXTENSION_DIR/Cargo.toml" if [ ! -d "$EXTENSION_DIR" ]; then  echo "Directory $EXTENSION_DIR does not exist."  exit 1fi if [ -z "$VERSION" ]; then  grep -m 1 'version =' "$EXTENSION_TOML" | awk -F\" '{print $2}'  exit 0fi sed -i '' -e "s/^version = \".*\"/version = \"$VERSION\"/" "$EXTENSION_TOML"sed -i '' -e "s/^version = \".*\"/version = \"$VERSION\"/" "$CARGO_TOML"cargo update --workspace

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t