#!/usr/bin/env nix-shell #!nix-shell -i python3 -p python3 nix-update """ Update script for goose-cli package. This script uses nix-update to fetch the latest version of goose-cli and update the package.nix file with the new version, src hash, and cargoHash. It also updates the librusty_v8 hashes via the custom fetchers.nix. Usage: ./update.py # Update to latest release ./update.py --version 1.34.0 # Update to specific version """ import subprocess import sys def main(): args = ["nix-update", "--flake", ".#goose-cli"] + sys.argv[1:] subprocess.check_call(args) if __name__ == "__main__": main()